when<TResult extends Object?> method

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

Implementation

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