InstanceDatabaseOps<T extends Model> mixin
- Superclass constraints
- Mixin applications
Properties
- createdAt ↔ DateTime?
-
Creation timestamp (UTC).
getter/setter pairinherited
- disk ↔ DatabaseDisk
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int?
-
Primary key (auto-incremented by backend).
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt ↔ DateTime?
-
Last update timestamp (UTC).
getter/setter pairinherited
- uuid ↔ String?
-
UUID for cross-backend identification.
getter/setter pairinherited
Methods
-
delete(
{DatabaseDisk? disk}) → Future< bool> -
Deletes the current instance.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
{DatabaseDisk? disk}) → Future< bool> -
Saves the current instance.
override
-
toJson(
) → Map< String, dynamic> -
Serializes model data (excluding metadata).
inherited
-
toMetaJson(
) → Map< String, dynamic> -
Serializes metadata fields (
id,uuid, timestamps).inherited -
toString(
) → String -
Human-readable string representation.
inherited
-
update(
{required Map< String, dynamic> withJson, DatabaseDisk? disk}) → Future<bool> -
Updates the current instance with new data.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited