addState method

String addState(
  1. StateX<StatefulWidget>? state
)
inherited

Associate this StateXController to the specified State object to use that State object's functions and features. Returns that State object's unique identifier.

Implementation

String addState(StateX? state) {
  if (state == null) {
    return '';
  }
  if (state.add(this).isNotEmpty) {
    return state.identifier;
  } else {
    return '';
  }
}