AuthFlowStatePatterns extension
Adds pattern-matching-related methods to AuthFlowState.
Methods
-
map<
TResult extends Object?> (TResult $default(_AuthFlowState value)) → TResult -
Available on AuthFlowState, provided by the AuthFlowStatePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_AuthFlowState value)?) → TResult? -
Available on AuthFlowState, provided by the AuthFlowStatePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_AuthFlowState value)?, {required TResult orElse()}) → TResult -
Available on AuthFlowState, provided by the AuthFlowStatePatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(VoAuthPageKeys? page, VoAuthPageKeys? previousPage, bool isLoading, String? error, String? phone, String? email, String? countryCode, String? formattedPhone, SendOtpResponse? sendOtpResponse, VerifyOtpResponse? verifyOtpResponse)?, {required TResult orElse()}) → TResult -
Available on AuthFlowState, provided by the AuthFlowStatePatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(VoAuthPageKeys? page, VoAuthPageKeys? previousPage, bool isLoading, String? error, String? phone, String? email, String? countryCode, String? formattedPhone, SendOtpResponse? sendOtpResponse, VerifyOtpResponse? verifyOtpResponse)) → TResult -
Available on AuthFlowState, provided by the AuthFlowStatePatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(VoAuthPageKeys? page, VoAuthPageKeys? previousPage, bool isLoading, String? error, String? phone, String? email, String? countryCode, String? formattedPhone, SendOtpResponse? sendOtpResponse, VerifyOtpResponse? verifyOtpResponse)?) → TResult? -
Available on AuthFlowState, provided by the AuthFlowStatePatterns extension
A variant ofwhenthat fallback to returningnull