Model class abstract

Constructors

Model({int fetch_timeout_ms = 10000})

Properties

handler ModelHandler
no setter
hashCode int
The hash code for this object.
no setterinherited
id → dynamic
no setter
model_name String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

endFetch() → void
fetch(List<Property> properties, Map<String, dynamic>? user_data) Future<void>
getProperty(String name) Property?
isDirty() bool
isFetching() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onFetch(List<Property> properties, Map<String, dynamic>? user_data) Future<void>
onUpdate(Map<Property, dynamic> property_value_map, Map<String, dynamic>? user_data) Future<void>
setByJson(Map<String, dynamic> json, {Map<String, dynamic>? user_data}) → void
setProperties(List<Property> properties) → void
startFetch() → void
toString() String
A string representation of this object.
inherited
update(Map<Property, dynamic> property_value_map, Map<String, dynamic>? user_data) Future<void>

Operators

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

Static Methods

createModel<T extends Model>(ModelHandler handler, Map<Property, dynamic> property_value_map, {Map<String, dynamic>? user_data}) Future<T?>
deleteModel(ModelHandler handler, dynamic id, {Map<String, dynamic>? user_data}) Future<void>
fetchModel(ModelHandler handler, dynamic id, List<Property> properties, {Map<String, dynamic>? user_data}) Future<Model?>
fetchModelWithPropertyNames(ModelHandler handler, dynamic id, List<String> property_names, {Map<String, dynamic>? user_data}) Future<Model?>
getModel(ModelHandler handler, dynamic id) Model?
getOrNewModel(ModelHandler handler, dynamic id) Model
putModel(ModelHandler handler, Model model) → void