PrimitiveJsonNullable<T> class abstract

Adds isNull getter to all nullable primirives

Inheritance
Implemented types
Implementers

Constructors

PrimitiveJsonNullable()

Properties

hashCode int
The hash code for this object.
no setteroverride
isNull bool
Returns whether or not current type value is null. Example:
no setteroverride
isSet bool
Returns if value is set. If is not setted and you call value getter it will throw a exception.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T?
Return current primitive value of type T or null
getter/setter pairinherited-setteroverride-getter
valueOrNull → T?
Returns its value or null if it is not defined yet
no setterinherited

Methods

delete() → void
delete current value and set it to null
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(T? value) → void
Set current primitive value of type T
inherited
setFromJson(dynamic json) bool
Convert any given json to correspondig types and store it. If fails, it returns false.
inherited
toJson() → dynamic
Convert object to json compatible types
inherited
toString() String
A string representation of this object.
inherited
tryParse(dynamic source) → T?
Try to convert to value from any given json
inherited

Operators

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