getInstance static method

Future<MessageRepository> getInstance()

Implementation

static Future<MessageRepository> getInstance() async {
  return MessageRepository(await openDatabase(
    '${await getDatabasesPath()}/messages_database.db',
    onCreate: _createTables,
    version: 1,
  ));
}