ValueObject<T> class
abstract
Constructors
- ValueObject.new({required T defaultValue, required bool isRequired})
Properties
- defaultValue → T
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isRequired → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
no setter
- valueFormated → String
-
no setter
- valueShadowed → String
-
no setter
Methods
-
doParse(
String? parseValue) → T -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String? parseValue) → T -
parseValueTry(
String? newValue) → String -
set(
T newValue) → void -
toString(
) → String -
A string representation of this object.
override
-
tryParse(
String? parseValue) → T? -
validate(
String? newValue) → void -
validator(
String? newValue) → String?
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override