whenOrNull<TResult extends Object?> method

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

Implementation

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