when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult knownValue(
    1. KnownCreateResultValidationStatus data
    ),
  2. required TResult unknownValue(
    1. String data
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(KnownCreateResultValidationStatus data)
      knownValue,
  required TResult Function(String data) unknownValue,
}) =>
    throw _privateConstructorUsedError;