get_it_injector_gen 0.3.1 get_it_injector_gen: ^0.3.1 copied to clipboard
Automate class registration for dependency injection using `get_it`, Simplify and manage dependencies effortlessly in Dart projects.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add get_it_injector_gen
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
get_it_injector_gen: ^0.3.1
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:get_it_injector_gen/builders.dart';
import 'package:get_it_injector_gen/enums/enums.dart';
import 'package:get_it_injector_gen/enums/parameter_type.dart';
import 'package:get_it_injector_gen/enums/register_type.dart';
import 'package:get_it_injector_gen/models/group.dart';
import 'package:get_it_injector_gen/models/group.g.dart';
import 'package:get_it_injector_gen/models/implementation.dart';
import 'package:get_it_injector_gen/models/implementation.g.dart';
import 'package:get_it_injector_gen/models/importable.dart';
import 'package:get_it_injector_gen/models/injectable.dart';
import 'package:get_it_injector_gen/models/injectable.g.dart';
import 'package:get_it_injector_gen/models/models.dart';
import 'package:get_it_injector_gen/models/parameter.dart';
import 'package:get_it_injector_gen/models/parameter.g.dart';
import 'package:get_it_injector_gen/models/parameters.dart';
import 'package:get_it_injector_gen/models/settings.dart';
import 'package:get_it_injector_gen/models/settings.g.dart';
import 'package:get_it_injector_gen/models/settings_interface.dart';