service_locator 1.0.0

Dart native js
Flutter Android iOS web

Provides service locator pattern implementation for dart.

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>();


}

0
likes
80
pub points
50%
popularity

Provides service locator pattern implementation for dart.

Homepage

Documentation

API reference

Uploader

guypeled76@gmail.com

License

GPL 3.0 (LICENSE)

More

Packages that depend on service_locator