Model class abstract
- Implementers
Constructors
- Model()
Properties
- eloquent → Eloquent
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- primaryValue → dynamic
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toJson
→ Map<
String, Object?> -
Structure the object to be inserted when executing
save
method.no setter
Methods
-
delete(
) → Future< int> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
) → Future< int> - Create record in related table if not exists depending on primary value Otherwise update the values.
-
setPrimaryValue(
dynamic value) → dynamic -
Update the primary value automatically when
save
method is executed. -
toString(
) → String -
A string representation of this object.
inherited
-
update(
Map< String, Object?> values) → Future<int>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited