BaseModel class abstract

Constructors

BaseModel.new({String? id, DateTime? createdAt, DateTime? updatedAt})

Properties

createdAt DateTime?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatedAt DateTime?
getter/setter pair

Methods

beforeCreate() → void
beforeUpdate() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toInsertJson() Map<String, dynamic>
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
toUpdateJson() Map<String, dynamic>

Operators

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

Static Methods

generateUuid() String