maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult valueObject(
    1. ValueObjectKind valueObjectKind
    )?,
  2. TResult entity(
    1. EntityKind entityKind
    )?,
  3. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(ValueObjectKind valueObjectKind)? valueObject,
  TResult Function(EntityKind entityKind)? entity,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;