Model class

Represents arbitrary data, with an associated ID and timestamps.

Constructors

Model({String? id, DateTime? createdAt, DateTime? updatedAt})

Properties

createdAt DateTime?
The time at which this item was created.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
A unique identifier corresponding to this item.
getter/setter pair
idAsInt int?
Returns the id, parsed as an int.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatedAt DateTime?
The last time at which this item was updated.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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