SpotAsyncGetter<T> typedef
SpotAsyncGetter<T> =
Future<T> Function(dynamic get<R>() )
Async factory function type for creating instances with async initialization.
The get parameter allows resolving dependencies:
(get) async {
final db = AppDatabase();
await db.initialize();
return db;
}
Implementation
typedef SpotAsyncGetter<T> = Future<T> Function(Function<R>() get);