addCustomState method

void addCustomState(
  1. S _state
)

add _state to customState and rebuild

Implementation

void addCustomState(S _state) {
  if (customState.add(_state)) {
    setState(() {});
  }
}