ModelField<T> class

Model field for native bool type

Inheritance

Constructors

ModelField({required Model parent, required FieldOptions options, ModelInstanciator? useModelInstanciator})

Properties

current → T?
no setter
hashCode int
The hash code for this object.
no setterinherited
isLoaded bool
no setterinherited
isNull bool
no setterinherited
name String
no setterinherited
options FieldOptions
finalinherited
parent Model
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
no setteroverride
useModelInstanciator ModelInstanciator?
getter/setter pair
value Model?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(Model value) → void
inherited
setFromJson(dynamic json) bool
Convert and set any json to T It doesn't crash if passed incorrect data type value If it fails to put value it returns false
override
toJson() → dynamic
Convert T to json compatible
override
toString() String
A string representation of this object.
inherited

Operators

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