setPlatform static method

Future setPlatform({
  1. required int platform,
  2. required String appKey,
  3. String? appSecret,
  4. String? redirectURL,
})

Implementation

static Future setPlatform(
    {required int platform,
    required String appKey,
    String? appSecret,
    String? redirectURL}) async {
  Map map = {
    'platform': platform,
    'appKey': appKey,
    'appSecret': appSecret,
    'redirectURL': redirectURL
  }..removeWhere((key, value) => value == null);
  _channel.invokeMethod('setPlatform', map);
}