createState method

State createState(
  1. String stateName
)

Creates a State with stateName.

Implementation

State createState(String stateName) {
  var state = getState(stateName);
  state ??= State(this, stateName);
  return state;
}