getDatabase method

Future<Database?> getDatabase()

Implementation

Future<Database?> getDatabase() async {
  try {
    return databases.get(databaseId: environment.databaseId);
  } catch (e) {
    return null;
  }
}