dependon 0.0.1 copy "dependon: ^0.0.1" to clipboard
dependon: ^0.0.1 copied to clipboard

outdated

Dependency injection management.

example/main.dart

import 'package:dependon/dependon.dart';

import 'provider/user_provider.dart';
import 'repository/user_repository.dart';
import 'repository/user_repository_impl.dart';

void main() async {
  singleton(() => UserProvider());
  singleton<UserRepository>(() => UserRepositoryImpl(get()));

  final UserRepository userRepository = get();
  final user = await userRepository.getUser();

  print(user.name);
}
2
likes
0
points
27
downloads

Publisher

verified publisherniun.dev

Weekly Downloads

Dependency injection management.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, flutter

More

Packages that depend on dependon