accessor<T extends DatabaseAccessor<GeneratedDatabase> > method
Find an accessor by its name
in the database, or create it with
create
. The result will be cached.
Implementation
T accessor<T extends DatabaseAccessor>(T Function(GeneratedDatabase) create) {
final cache = _cache.knownAccessors;
return cache.putIfAbsent(T, () => create(attachedDatabase)) as T;
}