init method

void init(
  1. {required bool? isOpenMessageRoaming,
  2. required String? appkey,
  3. String? channel,
  4. bool isProduction = false}
)

Implementation

void init({
  required bool? isOpenMessageRoaming,
  required String? appkey,
  String? channel,
  bool isProduction = false,
}) {
  _channel.setMethodCallHandler(_handleMethod);

  _channel.invokeMethod(
      'setup',
      {
        'isOpenMessageRoaming': isOpenMessageRoaming,
        'appkey': appkey,
        'channel': channel,
        'isProduction': isProduction
      }..removeWhere((key, value) => value == null));
}