Last updated:
0 purchases
service locator
Provides service locator pattern implementation for dart.
Usage #
A simple usage example:
import 'package:service_locator/service_locator.dart';
main() {
ServiceContainer container = ServiceContainer();
container.add(AuthService());
ServiceContainer scope = ServiceContainer(parent: container);
scope.add(HttpService());
AuthService authService = scope.get<AuthService>();
HttpService httpService = scope.get<HttpService>();
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.