lite_ref 0.8.1 copy "lite_ref: ^0.8.1" to clipboard
lite_ref: ^0.8.1 copied to clipboard

A lightweight dependency injection package with support for overriding for testing.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add lite_ref

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

dependencies:
  lite_ref: ^0.8.1

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

Import it

Now in your Dart code, you can use:

import 'package:lite_ref/lite_ref.dart';
23
likes
150
points
168
downloads

Publisher

verified publishernosy.dev

Weekly Downloads

A lightweight dependency injection package with support for overriding for testing.

Repository (GitHub)
View/report issues

Topics

#dependency-injection #provider #di

Documentation

API reference

License

MIT (license)

Dependencies

basic_interfaces, flutter, lite_ref_core

More

Packages that depend on lite_ref