initController method Null safety

void initController(
  1. dynamic controller
)

Init the controller And prevents the redefinition of it

Implementation

static void initController(SmoothCameraController controller) {
  _controller ??= controller;
}