mvvm_service library

Classes

HookTickerProvider
A custom TickerProvider implementation designed for hook-based life cycle management.
Service<T>
An abstract class that represents the ViewModel in the MVVM architecture pattern. Primarily responsible for data loading and state management.
ServiceScope
A widget that hosts the ServiceScopeElement to manage and provide application-wide services down the widget subtree.
ServiceScopeElement
ServiceSubscription
Manages the connection between a Service and the elements depending on it.
StateId
Identifies state by its optional owning element, type, and optional key.
StateScope
A widget that hosts the StateScopeElement to manage and provide application-wide state down the widget subtree.
StateScopeElement
StateSubscription<T>
Manages the connection between a state and the elements depending on it.

Enums

ServiceMode
Controls whether serviceOf only reads a service or also watches it for changes.
ServiceStatus
Signature for the data loading state of a standard Service.
StateMode
Controls whether stateOf only reads a state or also watches it for changes.

Extensions

HooksBuildExtension on BuildContext
Provides a suite of custom hooks via BuildContext to manage the lifecycle of common Flutter controllers and resource-heavy objects automatically.
ServiceBuildContext on BuildContext
Provides convenience methods on BuildContext to retrieve, manage, and react to application-wide services and state.
ServiceWhen on Service<T>
Extension that provides a Flutter widget builder for Service states.