tiny_locator 1.0.0+2 copy "tiny_locator: ^1.0.0+2" to clipboard
tiny_locator: ^1.0.0+2 copied to clipboard

Tiny service locator that provides a global access point to services.

example/main.dart

import 'package:tiny_locator/tiny_locator.dart';

void main() {
  // register
  locator.add(() => 'abc');
  // lookup
  print(locator.get<String>());
}
2
likes
140
pub points
35%
popularity

Publisher

verified publisherzuvola.com

Tiny service locator that provides a global access point to services.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on tiny_locator