service_locator 1.0.0 copy "service_locator: ^1.0.0" to clipboard
service_locator: ^1.0.0 copied to clipboard

Provides service locator pattern implementation for dart.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add service_locator

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  service_locator: ^1.0.0

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:service_locator/service_locator.dart';
1
likes
30
pub points
56%
popularity

Publisher

unverified uploader

Provides service locator pattern implementation for dart.

Homepage

License

GPL-3.0 (LICENSE)

More

Packages that depend on service_locator