setup static method
Implementation
static void setup(AndroidWindowHandler? api, {BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
'dev.flutter.pigeon.AndroidWindowHandler.handler', codec, binaryMessenger: binaryMessenger);
if (api == null) {
channel.setMessageHandler(null);
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null, 'Argument for dev.flutter.pigeon.AndroidWindowHandler.handler was null.');
final List<Object?> args = (message as List<Object?>?)!;
final Map<Object?, Object?>? arg_message = (args[0] as Map<Object?, Object?>?);
assert(arg_message != null, 'Argument for dev.flutter.pigeon.AndroidWindowHandler.handler was null, expected non-null Map<Object?, Object?>.');
final Map<Object?, Object?> output = await api.handler(arg_message!);
return output;
});
}
}
}