initDatabase method

Future initDatabase()

初始化

Implementation

Future initDatabase() {
  Future future = new Future(() async {
    String databasePath = await createDatabase();
    Database database = await openCacheDatabase(databasePath);
    this.database = database;
    isDatabaseReady = true;
    print("====数据库初始化完毕==>");
    return "0";
  });
  return future;
}