StateX<T extends StatefulWidget> constructor
StateX<T extends StatefulWidget> ([
- StateXController? _controller
With an optional StateXController parameter, this constructor imposes its own Error Handler.
Implementation
StateX([this._controller]) {
/// IMPORTANT! Assign itself to _stateX before adding any StateXController. -gp
_stateX = this;
/// Add to the list of StateX objects present in the app!
_addToMapOfStates(this);
/// Any subsequent calls to add() will be assigned to stateX.
add(_controller);
}