when<TResult extends Object?> method

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

Implementation

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