spotAsync<T> function
Global convenience function for resolving async dependencies.
Shorthand for Spot.spotAsync.
Parameters:
name: Optional name qualifier for named instances
Example:
final db = await spotAsync<Database>();
final api = await spotAsync<IApiClient>();
// Named instance
final remoteCache = await spotAsync<Cache>(name: 'remote');
Implementation
Future<T> spotAsync<T>({String? name}) => Spot.spotAsync<T>(name: name);