setUp method

  1. @override
Future<void> setUp(
  1. String clientId,
  2. String clientSecret,
  3. bool isProduction,
  4. String urlScheme,
  5. String state,
  6. String redirectUri,
  7. String scope,
)
override

Implementation

@override
Future<void> setUp(
  String clientId,
  String clientSecret,
  bool isProduction,
  String urlScheme,
  String state,
  String redirectUri,
  String scope,
) async {
  await methodChannel
      .invokeMethod<void>('set_up_environment', <String, String>{
    'client_id': clientId,
    'client_secret': clientSecret,
    'environment': isProduction ? 'production' : 'qa',
    "redirect_uri_login": urlScheme,
    "scheme": urlScheme,
    'state': state,
    "redirect_url": redirectUri,
    "scope": scope,
  });
}