DatabaseUtils class Null safety

This class facilitates the connection to the database and manages its responses.

Constructors

DatabaseUtils()

Properties

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
safeStorage FlutterSecureStorage
Object to access FlutterSecureStorage.
final

Methods

checkToken() Future<bool>
Checks if token is valid.
getStatement(String? statementID) Future<Statement?>
Get a single Statement from the Database by Statement.objectId.
login(String username, String password, Function loginCallback) → void
Login a user.
logout() Future<void>
Logsout a user by deleting the session token.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
searchStatements(String? query) Future<Statements?>
Search for Statements from the Database by String. [...]
sendData(Statement statement, Function reloadEditScreen) Future<QueryResult?>
Send a newly created Statement to the Database.
toString() String
A string representation of this object. [...]
inherited
updateData(Statement statement, List<String> oldFactIds, Function reloadEditScreen) Future<QueryResult?>
Update a Statement to from the Database.

Operators

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