Karee Inject

Library used to help developers to better manage dependency injection during flutter development.


Karee Inject provide an amazing collection of annotation like Service for services, Value for reading value from application config file, Autowired to auto initialize classe and Persistable A simple usage example:

Use of @Persistable with data model

import 'package:karee_inject/karee_inject.dart';

class User {

  double id;
  String name;


Use of Serviceto define a service, and Autowiredto inject into property;

class ServiceUser {

  DatabaseInterface db;

  User getUserById(double id){

    return db
      .where('id', isEqualTo: id);


# Generate additional source first
flutter packages pub run build_runner build --delete-conflicting-outputs

# Then run test
flutter test


Karee.annotations [...]