removeController method Null safety

bool removeController(
  1. RiveAnimationController controller
)

Remove an animation controller form this artboard.

Implementation

bool removeController(RiveAnimationController controller) {
  if (_animationControllers.remove(controller)) {
    controller.isActiveChanged.removeListener(_onControllerPlayingChanged);
    controller.dispose();
    return true;
  }
  return false;
}