CompValueSingle<T extends Comparable<T>> class

Inheritance

Constructors

CompValueSingle(T value)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isList bool
no setterinherited
isRef bool
no setterinherited
isSingle bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
final
variantType TypeCompVal
final

Methods

map<_T>({required _T ref(CompValueRef<T> value), required _T single(CompValueSingle<T> value), required _T list(CompValueList<T> value)}) → _T
inherited
maybeMap<_T>({required _T orElse(), _T ref(CompValueRef<T> value)?, _T single(CompValueSingle<T> value)?, _T list(CompValueList<T> value)?}) → _T
inherited
maybeWhen<_T>({required _T orElse(), _T ref(String ref)?, _T single(T value)?, _T list(List<CompVal<T>> values)?}) → _T
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
override
toString() String
A string representation of this object.
override
when<_T>({required _T ref(String ref), required _T single(T value), required _T list(List<CompVal<T>> values)}) → _T
inherited

Operators

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

Static Methods

fromJson<T extends Comparable<T>>(Object? _map) CompValueSingle<T>
override

Constants

fieldsSerde → const Map<String, SerdeType>