qlevar_view_model 0.0.1
qlevar_view_model: ^0.0.1 copied to clipboard
An extension to qlevar_router package which gives ability to use ViewModels that will be bind to a particular page for holding its business logic.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add qlevar_view_model
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
qlevar_view_model: ^0.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:qlevar_view_model/qlevar_view_model.dart';