when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult empty(
    1. T failedValue
    ),
  2. required TResult short(
    1. T failedValue
    ),
  3. required TResult invalidEmail(
    1. T failedValue
    ),
  4. required TResult invalidPhone(
    1. T failedValue
    ),
  5. required TResult weakPassword(
    1. T failedValue
    ),
  6. required TResult exceedingLength(
    1. T failedValue
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(T failedValue) empty,
  required TResult Function(T failedValue) short,
  required TResult Function(T failedValue) invalidEmail,
  required TResult Function(T failedValue) invalidPhone,
  required TResult Function(T failedValue) weakPassword,
  required TResult Function(T failedValue) exceedingLength,
}) =>
    throw _privateConstructorUsedError;