setup static method

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

Implementation

}}abstract class MesiboUIBasicCustomizationListenerFlutter{static const MessageCodec<Object?> codec= _MesiboUIBasicCustomizationListenerFlutterCodec();void MesiboUI_onClickCallButton(MesiboProfile profile,bool para_video);void MesiboUI_onClickToolbar(MesiboProfile profile);void MesiboUI_onClickEndToEndEncryptionInfoButton(MesiboProfile profile);static void setup(MesiboUIBasicCustomizationListenerFlutter? api,{BinaryMessenger? binaryMessenger}
    ){{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboUIBasicCustomizationListenerFlutter.MesiboUI_onClickCallButton',codec,binaryMessenger:
    binaryMessenger);if(api== null){channel.setMessageHandler(null);}
    else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboUIBasicCustomizationListenerFlutter.MesiboUI_onClickCallButton was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboProfile? arg_profile=(args[0] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboUIBasicCustomizationListenerFlutter.MesiboUI_onClickCallButton was null, expected non-null MesiboProfileFlutter.');final bool? arg_para_video=(args[1] as bool?);assert(arg_para_video!= null,'Argument for com.mesibo.mesibo_flutter.MesiboUIBasicCustomizationListenerFlutter.MesiboUI_onClickCallButton was null, expected non-null bool.');try{api.MesiboUI_onClickCallButton(arg_profile!,arg_para_video!);return wrapResponse(empty:
      true);} on PlatformException catch(e){return wrapResponse(error: e);} catch(e){return wrapResponse(error: PlatformException(code:
 'error',message: e.toString()));}});}}{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboUIBasicCustomizationListenerFlutter.MesiboUI_onClickToolbar',codec,binaryMessenger:
   binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboUIBasicCustomizationListenerFlutter.MesiboUI_onClickToolbar was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboProfile? arg_profile=(args[0] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboUIBasicCustomizationListenerFlutter.MesiboUI_onClickToolbar was null, expected non-null MesiboProfileFlutter.');try{api.MesiboUI_onClickToolbar(arg_profile!);return wrapResponse(empty:
   true);} on PlatformException catch(e){return wrapResponse(error: e);} catch(e){return wrapResponse(error:
  PlatformException(code:
        'error',message:
 e.toString()));}});}}{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboUIBasicCustomizationListenerFlutter.MesiboUI_onClickEndToEndEncryptionInfoButton',codec,binaryMessenger:
    binaryMessenger);if(api== null){channel.setMessageHandler(null);}
        else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboUIBasicCustomizationListenerFlutter.MesiboUI_onClickEndToEndEncryptionInfoButton was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboProfile? arg_profile=(args[0] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboUIBasicCustomizationListenerFlutter.MesiboUI_onClickEndToEndEncryptionInfoButton was null, expected non-null MesiboProfileFlutter.');try{api.MesiboUI_onClickEndToEndEncryptionInfoButton(arg_profile!);return wrapResponse(empty:
        true);} on PlatformException catch(e){return wrapResponse(error: e);} catch(e){return wrapResponse(error:
    PlatformException(code:'error',message: e.toString()));}});}}}