remove method

  1. @override
String remove(
  1. StateXController? controller
)
override

Remove a specific StateXController to this View. Returns the StateXController's unique String identifier.

Implementation

@override
String remove(StateXController? controller) {
  if (controller != null) {
    /// It may have been a listener. Can't be both.
    removeListener(controller);

    /// Collect all the Controllers to the 'root' State object;
    rootState?._controllers.remove(controller);
  }
  return super.remove(controller);
}