spot<T> function
Global convenience function for resolving dependencies.
Shorthand for Spot.spot.
Parameters:
name: Optional name qualifier for named instances
Example:
final settings = spot<ISettings>();
final repo = spot<IRepository>();
// Named instance
final publicClient = spot<HttpClient>(name: 'public');
Implementation
T spot<T>({String? name}) => Spot.spot<T>(name: name);