close static method

Future<void> close()

关闭数据库连接

注意:关闭后需要重新调用 initDatabase 才能继续使用

Implementation

static Future<void> close() async {
  if (_db != null) {
    await _db!.close();
    _db = null;
    LogUtil.v('RxNetDataBase: Database closed');
  }

  _resetInitState();
}