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
stateand theactionyou 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
nameof the state and then return a value in the callbacksetValue.