view_model_divider 0.0.1-1.1.beta
view_model_divider: ^0.0.1-1.1.beta copied to clipboard
A new Flutter package that divide a business logic from a UI part of a widget.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add view_model_dividerThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
view_model_divider: ^0.0.1-1.1.betaAlternatively, 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:view_model_divider/stateful_view.dart';
import 'package:view_model_divider/view.dart';
import 'package:view_model_divider/view_model.dart';