got_it 1.1.1+2 copy "got_it: ^1.1.1+2" to clipboard
got_it: ^1.1.1+2 copied to clipboard

discontinued

Slightly more advanced service locator in the style of get-it

example/main.dart

import 'package:got_it/got_it.dart';

final gotIt = GotIt();

void main() {
  const name = "This is the got_it package!";
  gotIt.registerSingleton<String>(name);
  sayMyName();
}

void sayMyName() {
  print(gotIt<String>());
}
0
likes
30
pub points
21%
popularity

Publisher

unverified uploader

Slightly more advanced service locator in the style of get-it

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

test

More

Packages that depend on got_it