whenOrNull<TResult extends Object?> method
TResult?
whenOrNull<TResult extends Object?>({
- TResult empty(
- T failedValue
- TResult short(
- T failedValue
- TResult invalidEmail(
- T failedValue
- TResult invalidPhone(
- T failedValue
- TResult weakPassword(
- T failedValue
- TResult exceedingLength(
- T failedValue
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult Function(T failedValue)? empty,
TResult Function(T failedValue)? short,
TResult Function(T failedValue)? invalidEmail,
TResult Function(T failedValue)? invalidPhone,
TResult Function(T failedValue)? weakPassword,
TResult Function(T failedValue)? exceedingLength,
}) =>
throw _privateConstructorUsedError;