changeState<T extends ControllerState> method Null safety

  1. @protected
T changeState<T extends ControllerState>(
  1. T v
)

Implementation

@protected
T changeState<T extends ControllerState>(T v) {
  controller.state = v;
  return v;
}