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;
  // print('@@ state set to $v');
  return v;
}