register static method

Future<void> register(
  1. Collection<Model> collection
)

Implementation

static Future<void> register(Collection collection) async {
  String id = collection.runtimeType.toString();
  collection.id = id;
  await collection.setup();
  _collections[id] = collection;
}