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.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
A unique identifier corresponding to this item.
read / write
idAsInt int
Returns the id, parsed as an int.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
updatedAt DateTime
The last time at which this item was updated.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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