ubuntu_service 0.4.0 copy "ubuntu_service: ^0.4.0" to clipboard
ubuntu_service: ^0.4.0 copied to clipboard

Simple service locator API based on GetIt.

Ubuntu Service #

pub license: MPL CI codecov

Simple service locator API based on GetIt.

import 'package:ubuntu_service/ubuntu_service.dart';

void main() {
  registerService<MyService>(MyService.new);
  ...
}

void somewhereElse() {
  final service = getService<MyService>();
  ...
}
copied to clipboard
7
likes
140
points
3.08k
downloads

Publisher

verified publishercanonical.com

Weekly Downloads

2024.09.11 - 2025.03.26

Simple service locator API based on GetIt.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

get_it, meta

More

Packages that depend on ubuntu_service