mvvm_service 1.1.1
mvvm_service: ^1.1.1 copied to clipboard
A Flutter-native service layer inspired by the MVVM pattern, managing services according to the widget lifecycle, without relying on Provider or Riverpod.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add mvvm_serviceThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
mvvm_service: ^1.1.1Alternatively, 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:mvvm_service/mvvm_service.dart';