dependon

Creator: coderz1093

Last updated:

0 purchases

dependon Image
dependon Images

Languages

Categories

Add to Cart

Description:

dependon

Simple, light-weight and extremely legible package for dependency injection management.
Features #

Simple to use
Light-weight and high compatible
Keep your code legible

Getting started #

Create your dependencies

import 'package:dependon/dependon.dart';

void main() {
final Dependon di = Dependon.instance;
di.enableLogging(true);

di.singleton<UserRepository>(() => UserRepositoryImpl());
di.factory(() => UserUseCase(get()));
di.singleton(() => UserService(get()), lazy: false);

runApp(myApp());
}
copied to clipboard

Retrieve your dependencies

import 'package:dependon/dependon.dart';

final UserRepository userRepository = get<UserRepository>();
// or
final UserRepository userRepository = get();
// or
final userRepository = get<UserRepository>();
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.