Field<T> class
abstract
We have different types of fields
This database model is based on json
But with extra things
Json normally have Number,String,Boolean,List,Map,Null
This adds Datetime and Sets
A user can also extend Field class to support custom types
- Implementers
Constructors
- Field({required Model parent, required FieldOptions options})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoaded → bool
-
no setter
- isNull → bool
-
no setter
- name → String
-
no setter
- options → FieldOptions
-
final
- parent → Model
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → Type
-
no setter
- value → T?
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
T value) → void -
setFromJson(
JSONTYPE json) → bool -
Convert and set any json to
TIt doesn't crash if passed incorrect data type value If it fails to put value it returnsfalse -
toJson(
) → JSONTYPE -
Convert
Tto json compatible -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited