LexPrimitive class
Properties
-
data
→ Object
-
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<TResult extends Object?>({required TResult boolean(ULexPrimitiveBoolean value), required TResult integer(ULexPrimitiveInteger value), required TResult string(ULexPrimitiveString value), required TResult unknown(ULexPrimitiveUnknown value)})
→ TResult
-
inherited
-
mapOrNull<TResult extends Object?>({TResult? boolean(ULexPrimitiveBoolean value)?, TResult? integer(ULexPrimitiveInteger value)?, TResult? string(ULexPrimitiveString value)?, TResult? unknown(ULexPrimitiveUnknown value)?})
→ TResult?
-
inherited
-
maybeMap<TResult extends Object?>({TResult boolean(ULexPrimitiveBoolean value)?, TResult integer(ULexPrimitiveInteger value)?, TResult string(ULexPrimitiveString value)?, TResult unknown(ULexPrimitiveUnknown value)?, required TResult orElse()})
→ TResult
-
inherited
-
maybeWhen<TResult extends Object?>({TResult boolean(LexBoolean data)?, TResult integer(LexInteger data)?, TResult string(LexString data)?, TResult unknown(LexUnknown data)?, required TResult orElse()})
→ TResult
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
when<TResult extends Object?>({required TResult boolean(LexBoolean data), required TResult integer(LexInteger data), required TResult string(LexString data), required TResult unknown(LexUnknown data)})
→ TResult
-
inherited
-
whenOrNull<TResult extends Object?>({TResult? boolean(LexBoolean data)?, TResult? integer(LexInteger data)?, TResult? string(LexString data)?, TResult? unknown(LexUnknown data)?})
→ TResult?
-
inherited