accessor<T extends DatabaseAccessor<GeneratedDatabase>> method

T accessor<T extends DatabaseAccessor<GeneratedDatabase>>(
  1. T create(
    1. GeneratedDatabase
    )
)

Find an accessor type, or create it with create. The result will be cached.

Implementation

T accessor<T extends DatabaseAccessor>(T Function(GeneratedDatabase) create) {
  return attachedDatabase.accessor<T>(create);
}