registerApp method

  1. @override
Future<void> registerApp({
  1. required String appKey,
  2. required String? universalLink,
  3. required List<String> scope,
  4. String redirectUrl = WeiboRegister.DEFAULT_REDIRECTURL,
})
override

Implementation

@override
Future<void> registerApp({
  required String appKey,
  required String? universalLink,
  required List<String> scope,
  String redirectUrl = WeiboRegister.DEFAULT_REDIRECTURL,
}) {
  assert(!Platform.isIOS || (universalLink?.isNotEmpty ?? false));
  return methodChannel.invokeMethod<void>(
    'registerApp',
    <String, dynamic>{
      'appKey': appKey,
      'universalLink': universalLink,
      'scope': scope.join(','),
      'redirectUrl': redirectUrl,
    },
  );
}