setup static method

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

Implementation

PlatformException(code:'error',message: e.toString()));}});}}}}abstract class MesiboSyncListenerFlutter{static const MessageCodec<Object?> codec= StandardMessageCodec();void Mesibo_onSync(int session,int count);static void setup(MesiboSyncListenerFlutter? api,{BinaryMessenger? binaryMessenger}
   ){{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboSyncListenerFlutter.Mesibo_onSync',codec,binaryMessenger:
  binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboSyncListenerFlutter.Mesibo_onSync was null.');final List<Object?> args=(message as List<Object?>?)!;final int? arg_session=(args[0] as int?);assert(arg_session!= null,'Argument for com.mesibo.mesibo_flutter.MesiboSyncListenerFlutter.Mesibo_onSync was null, expected non-null int.');final int? arg_count=(args[1] as int?);assert(arg_count!= null,'Argument for com.mesibo.mesibo_flutter.MesiboSyncListenerFlutter.Mesibo_onSync was null, expected non-null int.');try{api.Mesibo_onSync(arg_session!,arg_count!);return wrapResponse(empty:
true);} on PlatformException catch(e){return wrapResponse(error:
             e);} catch(e){return wrapResponse(error:
      PlatformException(code:'error',message: e.toString()));}});}}}