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

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 ==(dynamic other) → bool
The equality operator.
inherited