init method

void init ({@required bool isOpenMessageRoaming, @required String appkey, String channel, 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));
}