getTable method

Future<CollectionBox<Map>> getTable(
  1. String tableName
)

Implementation

Future<CollectionBox<Map>> getTable(String tableName) async {
  var box = tables[tableName];
  if (box != null) {
    return box;
  }
  box = await collection.openBox<Map>(tableName);
  tables[tableName] = box;
  return box;
}