service_locator

Last updated:

0 purchases

service_locator Image
service_locator Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.