custom_state_management 1.0.1 copy "custom_state_management: ^1.0.1" to clipboard
custom_state_management: ^1.0.1 copied to clipboard

A simple state management library for Flutter applications.

📖 Getting Started #

1. Register a State #

Initialize the StateManager and register a state with a default value:

import 'package:flutter_state_manager/flutter_state_manager.dart';

final stateManager = StateManager(); stateManager.registerState

🛠 API Reference #

StateManager #

The core class for managing states.

Methods #

Method Description
registerState<T>() Registers a state with a default value.
getState<T>() Retrieves the current value of a state.
updateState<T>() Updates the value of a state.
watchState<T>() Returns a stream for listening to state changes.
resetState<T>() Resets a state to its default value.
removeState() Removes a state from the manager.
4
likes
150
points
11
downloads

Publisher

unverified uploader

Weekly Downloads

A simple state management library for Flutter applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on custom_state_management