flutter_package_state_manager 0.0.1
flutter_package_state_manager: ^0.0.1 copied to clipboard
A Flutter package for efficient state management without relying on existing state management solutions. It supports both simple and complex state types, with an intuitive API for synchronous and asyn [...]
Flutter Package State Manager #
A lightweight and easy-to-use state management package for Flutter applications.
Features #
- Manage simple and complex state types.
- Support synchronous and asynchronous state updates.
- Observe and respond to state changes.
Example #
final manager = StateManager();
// Create state
manager.createState<int>('counter', 0);
// Update state
manager.updateState<int>('counter', 1);
// Reset state
manager.resetState<int>('counter', 0);
// Observe state changes
manager.observeState('counter', () {
print("Counter updated: ${manager.getState<int>('counter')}");
});