CompVal<T extends Comparable<T> > class
abstract
A value in a comparison
CompVal.ref is a reference to another field CompVal.list accept multiple values in the comparison
- Implementers
- Annotations
-
- @immutable
Constructors
- CompVal(T value)
-
constfactory
-
CompVal.list(List<
CompVal< values)T> > -
constfactory
- CompVal.ref(String ref)
-
constfactory
- CompVal.single(T value)
-
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isList → bool
-
no setter
- isRef → bool
-
no setter
- isSingle → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- variantType → TypeCompVal
-
no setter
Methods
-
map<
_T> ({required _T ref(CompValueRef< T> value), required _T single(CompValueSingle<T> value), required _T list(CompValueList<T> value)}) → _T -
maybeMap<
_T> ({required _T orElse(), _T ref(CompValueRef< T> value)?, _T single(CompValueSingle<T> value)?, _T list(CompValueList<T> value)?}) → _T -
maybeWhen<
_T> ({required _T orElse(), _T ref(String ref)?, _T single(T value)?, _T list(List< CompVal< values)?}) → _TT> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
-
when<
_T> ({required _T ref(String ref), required _T single(T value), required _T list(List< CompVal< values)}) → _TT> >
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson<
T extends Comparable< (T> >Object? _map) → CompVal< T>
Constants
- fieldsSerde → const SerdeType