ValueObject class
- Inheritance
-
- Object
- IValueObject<
String> - ValueObject
Constructors
-
ValueObject(String input, List<
ValueValidator> validators) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → String?
-
finalinherited
- input → String
-
This will return the value irrespective of validity
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
value
→ Either<
ValueFailure< String> , String> -
final
Methods
-
get(
) → String -
This will return the valid value, if value is not valid then null
inherited
-
getOrCrash(
) → String -
inherited
-
getOrElse(
ValueCallback< String> l) → String -
inherited
-
isNotValid(
) → bool -
inherited
-
isValid(
) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
validateInput(
String input, List< ValueValidator> validators) → Either<ValueFailure< String> , String>