contract_prop 0.9.0 contract_prop: ^0.9.0 copied to clipboard
Dependency Injection (DI) for widget properties, provide override contract from inherited scope.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add contract_prop
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
contract_prop: ^0.9.0
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:contract_prop/contract_prop.dart';