whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? anonymous(
    1. bool returnSecureToken
    )?,
  2. TResult? idp(
    1. Uri requestUri,
    2. String postBody,
    3. bool returnSecureToken,
    4. bool returnIdpCredential,
    )?,
  3. TResult? password(
    1. String email,
    2. String password,
    3. bool returnSecureToken
    )?,
  4. TResult? customToken(
    1. String token,
    2. bool returnSecureToken
    )?,
  5. TResult? linkIdp(
    1. String idToken,
    2. Uri requestUri,
    3. String postBody,
    4. bool returnSecureToken,
    5. bool returnIdpCredential,
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(bool returnSecureToken)? anonymous,
  TResult? Function(Uri requestUri, String postBody, bool returnSecureToken,
          bool returnIdpCredential)?
      idp,
  TResult? Function(String email, String password, bool returnSecureToken)?
      password,
  TResult? Function(String token, bool returnSecureToken)? customToken,
  TResult? Function(String idToken, Uri requestUri, String postBody,
          bool returnSecureToken, bool returnIdpCredential)?
      linkIdp,
}) =>
    throw _privateConstructorUsedError;