when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult invalidEmailAddress(
    1. T failedValue
    ),
  2. required TResult invalidPhoneNumber(
    1. T failedValue
    ),
  3. required TResult emailAddressMustNotBeNull(
    1. T failedValue
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(T failedValue) invalidEmailAddress,
  required TResult Function(T failedValue) invalidPhoneNumber,
  required TResult Function(T failedValue) emailAddressMustNotBeNull,
}) =>
    throw _privateConstructorUsedError;