AppDatabase class Null safety

App database class (entities: NotificationModel)

Inheritance
Annotations
  • @TypeConverters([CategoryConverter, DatetimeConverter])
  • @Database(version: 1, entities: [NotificationModel])

Constructors

AppDatabase()

Properties

changeListener StreamController<String>
StreamController that is responsible for notifying listeners about changes in specific tables. It acts as an event bus.
@protected, late, final, inherited
database DatabaseExecutor
Use this whenever you need direct access to the sqflite database.
late, final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
notificationsDataSource INotificationsDataSource
App Notifications data source
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close() Future<void>
Closes the database.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

instance AppDatabase
App database instance (singleton)
read / write

Static Methods

build() → dynamic
App Database builder