helpers/src/state library

Functions

stateAction(String action, {required dynamic state, dynamic data}) → void
Send a state action to a NyState or NyPage in your application. Provide the state and the action you want to send.
updateState<T>(dynamic name, {dynamic data, dynamic setValue(T? currentValue)?}) → void
Update's the state of a NyState Widget in your application. Provide the name of the state and then return a value in the callback setValue.