removeCustomState method

void removeCustomState(
  1. S _state
)

remove _state from customState and rebuild

Implementation

void removeCustomState(S _state) {
  if (customState.remove(_state)) {
    setState(() {});
  }
}