maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult google(
    1. String idToken
    )?,
  2. TResult facebook(
    1. String accessToken
    )?,
  3. TResult twitter(
    1. String accessToken,
    2. String oauthTokenSecret
    )?,
  4. TResult custom(
    1. String providerId,
    2. Map<String, dynamic> parameters
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(String idToken)? google,
  TResult Function(String accessToken)? facebook,
  TResult Function(String accessToken, String oauthTokenSecret)? twitter,
  TResult Function(String providerId, Map<String, dynamic> parameters)?
      custom,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;