setup static method

void setup(
  1. MesiboCallIncomingListenerFlutter? api, {
  2. BinaryMessenger? binaryMessenger,
})

Implementation

return super.readValueOfType(type,buffer);}}}abstract class MesiboCallIncomingListenerFlutter{static const MessageCodec<Object?> codec= _MesiboCallIncomingListenerFlutterCodec();void MesiboCall_onNotify(int type,MesiboProfile profile,bool video,MesiboDateTime ts);static void setup(MesiboCallIncomingListenerFlutter? api,{BinaryMessenger? binaryMessenger}
         ){{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboCallIncomingListenerFlutter.MesiboCall_onNotify',codec,binaryMessenger:
  binaryMessenger);if(api== null){channel.setMessageHandler(null);}
else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboCallIncomingListenerFlutter.MesiboCall_onNotify was null.');final List<Object?> args=(message as List<Object?>?)!;final int? arg_type=(args[0] as int?);assert(arg_type!= null,'Argument for com.mesibo.mesibo_flutter.MesiboCallIncomingListenerFlutter.MesiboCall_onNotify was null, expected non-null int.');final MesiboProfile? arg_profile=(args[1] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboCallIncomingListenerFlutter.MesiboCall_onNotify was null, expected non-null MesiboProfileFlutter.');final bool? arg_video=(args[2] as bool?);assert(arg_video!= null,'Argument for com.mesibo.mesibo_flutter.MesiboCallIncomingListenerFlutter.MesiboCall_onNotify was null, expected non-null bool.');final MesiboDateTime? arg_ts=(args[3] as MesiboDateTime?);assert(arg_ts!= null,'Argument for com.mesibo.mesibo_flutter.MesiboCallIncomingListenerFlutter.MesiboCall_onNotify was null, expected non-null MesiboDateTimeFlutter.');try{api.MesiboCall_onNotify(arg_type!,arg_profile!,arg_video!,arg_ts!);return wrapResponse(empty:
         true);} on PlatformException catch(e){return wrapResponse(error: e);} catch(e){return wrapResponse(error: PlatformException(code:
             'error',message: e.toString()));}});}}}