service_provider_dart 1.0.1 service_provider_dart: ^1.0.1 copied to clipboard
flutter service provider like java spi
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add service_provider_dart
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
service_provider_dart: ^1.0.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:service_provider_dart/builder.dart';
import 'package:service_provider_dart/interface/service_annotation.dart';
import 'package:service_provider_dart/interface/service_interface.dart';
import 'package:service_provider_dart/parse/each_service_info.dart';
import 'package:service_provider_dart/parse/service_annotation_parse.dart';
import 'package:service_provider_dart/parse/service_parse_helper.dart';