Skip to main content

an_state 1.4.2 copy "an_state: ^1.4.2" to clipboard
an_state: ^1.4.2 copied to clipboard

A reactive state management library for Flutter, providing seamless integration between ViewModels, Widgets, and reactive observables.

1.4.2 #

  • Support FutureOr return type in reloader and pageLoader functions for RefreshableState and RefreshablePagerState

1.4.1 #

  • Add autoLoad parameter (true: reloadData(), false: refreshData(), null: disable) to RefreshableState and RefreshablePagerState

1.4.0 #

  • Add RefreshableState<T> for refreshable async data state management with refreshData() and reloadData()
  • Add RefreshablePagerState<T, K, Pager> for paginated refreshable state management with loadNextPage(), refreshData(), reloadData(), and pages getter
  • Add rememberRefreshableState and rememberRefreshablePagerState extensions on BuildContext
  • Add stateRefreshableOf and stateRefreshablePagerOf extensions on ViewModel

1.3.1 #

  • Add asNullableStateOf extension getter for Map and ValueNotifier
  • Add nullAsStateOf<T>() helper function for initializing nullable state with null

1.3.0 #

  • Add extension getters (asStateOf, asNullableStateOf) for Object, List, Set, Map, and ValueNotifier
  • Refactor stateOfValueNotifier parameter from required named parameter to positional parameter
  • Upgrade an_reactive_state to ^1.2.0
  • Make cancellable parameter optional across BaseState, RState, ComputedState, and effect()

1.2.0 #

  • add AsyncDataStateExt
  • and listenReactiveStates

1.1.0 #

  • add stateOfAsyncData

1.0.0 #

  • First version release
1
likes
160
points
401
downloads

Documentation

API reference

Publisher

verified publisheraymtools.com

Weekly Downloads

A reactive state management library for Flutter, providing seamless integration between ViewModels, Widgets, and reactive observables.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

an_async_data, an_lifecycle_cancellable, an_pager, an_reactive_state, an_viewmodel, anlifecycle, cancellable, flutter, remember

More

Packages that depend on an_state