ModelBase class abstract

Implementers

Constructors

ModelBase({String? id, String? restorationId, DateTime? createdAt, DateTime? updatedAt})
const

Properties

createdAt → DateTime?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
final
meta → ModelMeta<ModelBase>
no setter
restorationId → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updatedAt → DateTime?
final

Methods

additionalUpgradeQueries(int oldVersion, int newVersion) → List<String>
copyWith({String? id, String? restorationId, DateTime? createdAt, DateTime? updatedAt, Map<String, dynamic>? json}) → ModelBase
createTable(int version) → String
createTableAt(int newVersion) → bool
downgradeTable(int oldVersion, int newVersion) → List<String>
load(Map<String, dynamic> json) → ModelBase
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCreateComplete(int newVersion) → List<String>
onDowngradeComplete(int oldVersion, int newVersion) → List<String>
onUpgradeComplete(int oldVersion, int newVersion) → List<String>
recreateTable(int newVersion) → List<String>
recreateTableAt(int newVersion) → bool
toDb() → Map<String, dynamic>
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited
updateDates({DateTime? createdAt}) → ModelBase

Operators

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