setup static method
Implementation
static void setup(DjiFlutterApi? api, {BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
'dev.flutter.pigeon.DjiFlutterApi.setStatus', codec,
binaryMessenger: binaryMessenger);
if (api == null) {
channel.setMessageHandler(null);
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
'Argument for dev.flutter.pigeon.DjiFlutterApi.setStatus was null.');
final List<Object?> args = (message as List<Object?>?)!;
final Drone? arg_drone = (args[0] as Drone?);
assert(arg_drone != null,
'Argument for dev.flutter.pigeon.DjiFlutterApi.setStatus was null, expected non-null Drone.');
api.setStatus(arg_drone!);
return;
});
}
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
'dev.flutter.pigeon.DjiFlutterApi.sendVideo', codec,
binaryMessenger: binaryMessenger);
if (api == null) {
channel.setMessageHandler(null);
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
'Argument for dev.flutter.pigeon.DjiFlutterApi.sendVideo was null.');
final List<Object?> args = (message as List<Object?>?)!;
final Stream? arg_stream = (args[0] as Stream?);
assert(arg_stream != null,
'Argument for dev.flutter.pigeon.DjiFlutterApi.sendVideo was null, expected non-null Stream.');
api.sendVideo(arg_stream!);
return;
});
}
}
}