setup static method

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

Implementation

}}abstract class MesiboProfileSearchListenerFlutter{static const MessageCodec<Object?> codec= _MesiboProfileSearchListenerFlutterCodec();void onProfileSearchResultsInternal(List<MesiboProfile?> profiles,int reqid,bool update);static void setup(MesiboProfileSearchListenerFlutter? api,{BinaryMessenger? binaryMessenger}
         ){{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboProfileSearchListenerFlutter.onProfileSearchResultsInternal',codec,binaryMessenger:
  binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboProfileSearchListenerFlutter.onProfileSearchResultsInternal was null.');final List<Object?> args=(message as List<Object?>?)!;final List<MesiboProfile?>? arg_profiles=(args[0] as List<Object?>?)?.cast<MesiboProfile?>();assert(arg_profiles!= null,'Argument for com.mesibo.mesibo_flutter.MesiboProfileSearchListenerFlutter.onProfileSearchResultsInternal was null, expected non-null List<MesiboProfile?>.');final int? arg_reqid=(args[1] as int?);assert(arg_reqid!= null,'Argument for com.mesibo.mesibo_flutter.MesiboProfileSearchListenerFlutter.onProfileSearchResultsInternal was null, expected non-null int.');final bool? arg_update=(args[2] as bool?);assert(arg_update!= null,'Argument for com.mesibo.mesibo_flutter.MesiboProfileSearchListenerFlutter.onProfileSearchResultsInternal was null, expected non-null bool.');try{api.onProfileSearchResultsInternal(arg_profiles!,arg_reqid!,arg_update!);return wrapResponse(empty:
          true);} on PlatformException catch(e){return wrapResponse(error: e);} catch(e){return wrapResponse(error: PlatformException(code:
  'error',message: e.toString()));}});}}}