ValueObjectKind class

The two kinds of ValueObjects : SingleValueObjects and MultiValueObjects.

Annotations
  • @freezed

Constructors

ValueObjectKind.multiValueObject()
const
factory
ValueObjectKind.singleValueObject()
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult singleValueObject(_SingleValueObject value), required TResult multiValueObject(_MultiValueObject value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? singleValueObject(_SingleValueObject value)?, TResult? multiValueObject(_MultiValueObject value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult singleValueObject(_SingleValueObject value)?, TResult multiValueObject(_MultiValueObject value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult singleValueObject()?, TResult multiValueObject()?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult singleValueObject(), required TResult multiValueObject()}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? singleValueObject()?, TResult? multiValueObject()?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited