blob: f79a262b2786edeed11ae0f7c030828d88b9e73d [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is an example pigeon file that is used in compilation, unit, mock
// handler, and e2e tests.
import 'package:pigeon/pigeon.dart';
class NonNullFieldSearchRequest {
NonNullFieldSearchRequest({required this.query});
String query;
}
class ExtraData {
ExtraData({required this.detailA, required this.detailB});
String detailA;
String detailB;
}
enum ReplyType { success, error }
class NonNullFieldSearchReply {
NonNullFieldSearchReply(
this.result, this.error, this.indices, this.extraData, this.type);
String result;
String error;
List<int?> indices;
ExtraData extraData;
ReplyType type;
}
@HostApi()
abstract class NonNullFieldHostApi {
NonNullFieldSearchReply search(NonNullFieldSearchRequest nested);
}
@FlutterApi()
abstract class NonNullFieldFlutterApi {
NonNullFieldSearchReply search(NonNullFieldSearchRequest request);
}