EventBusDatabaseHelper<T extends DatabaseExecutor> class

Inheritance
Annotations
  • @sealed

Constructors

EventBusDatabaseHelper(Future<T> initDatabaseFunc()?)
factory

Properties

database → Future<T>
database instance of the database
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
initDatabase ↔ Future<T> Function()
initDatabase called to initialize the database
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(int id) → Future<int>
delete removes the row specified by the id. The number of affected rows is returned. This should be 1 as long as the row exists.
inherited
firstIntValue(List<Map<String, Object?>> list) → int?
inherited
insert(Map<String, dynamic> row) → Future<int>
inserts a row in the database where each key in the Map is a column name and the value is the column value. The return value is the id of the inserted row.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseInt(Object? object) → int?
Try to convert anything (int, String) to an int.
inherited
queryAllRows() → Future<List<Map<String, dynamic>>>
queryAllRows fetches of the rows are returned as a list of maps, where each map is a key-value list of columns.
inherited
queryRowCount() → Future<int?>
queryRowCount fetches of the methods (insert, query, update, delete) can also be done using raw SQL commands. This method uses a raw query to give the row count.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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