whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? anonymous(
    1. String idToken,
    2. String? email,
    3. String refreshToken,
    4. String expiresIn,
    5. String localId,
    )?,
  2. TResult? idp(
    1. String federatedId,
    2. String providerId,
    3. String localId,
    4. bool emailVerified,
    5. String? email,
    6. String? oauthIdToken,
    7. String? oauthAccessToken,
    8. String? oauthTokenSecret,
    9. String? rawUserInfo,
    10. String? firstName,
    11. String? lastName,
    12. String? fullName,
    13. String? displayName,
    14. Uri? photoUrl,
    15. String idToken,
    16. String refreshToken,
    17. String expiresIn,
    18. bool needConfirmation,
    )?,
  3. TResult? password(
    1. String idToken,
    2. String? email,
    3. String refreshToken,
    4. String expiresIn,
    5. String localId,
    6. bool registered,
    )?,
  4. TResult? custom(
    1. String idToken,
    2. String refreshToken,
    3. String expiresIn
    )?,
  5. TResult? linkIdp(
    1. String federatedId,
    2. String providerId,
    3. String localId,
    4. bool emailVerified,
    5. String? email,
    6. String? oauthIdToken,
    7. String? oauthAccessToken,
    8. String? oauthTokenSecret,
    9. String? rawUserInfo,
    10. String? firstName,
    11. String? lastName,
    12. String? fullName,
    13. String? displayName,
    14. Uri? photoUrl,
    15. String idToken,
    16. String refreshToken,
    17. String expiresIn,
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(String idToken, String? email, String refreshToken,
          String expiresIn, String localId)?
      anonymous,
  TResult? Function(
          String federatedId,
          String providerId,
          String localId,
          bool emailVerified,
          String? email,
          String? oauthIdToken,
          String? oauthAccessToken,
          String? oauthTokenSecret,
          String? rawUserInfo,
          String? firstName,
          String? lastName,
          String? fullName,
          String? displayName,
          Uri? photoUrl,
          String idToken,
          String refreshToken,
          String expiresIn,
          bool needConfirmation)?
      idp,
  TResult? Function(String idToken, String? email, String refreshToken,
          String expiresIn, String localId, bool registered)?
      password,
  TResult? Function(String idToken, String refreshToken, String expiresIn)?
      custom,
  TResult? Function(
          String federatedId,
          String providerId,
          String localId,
          bool emailVerified,
          String? email,
          String? oauthIdToken,
          String? oauthAccessToken,
          String? oauthTokenSecret,
          String? rawUserInfo,
          String? firstName,
          String? lastName,
          String? fullName,
          String? displayName,
          Uri? photoUrl,
          String idToken,
          String refreshToken,
          String expiresIn)?
      linkIdp,
}) =>
    throw _privateConstructorUsedError;