updateState function

void Function() updateState(
  1. State<StatefulWidget> state
)

Implementation

void Function() updateState(State state) {
  return () {
    // ignore: invalid_use_of_protected_member
    if (state.mounted) state.setState(() {});
  };
}