initController method Null safety
- dynamic controller
Init the controller And prevents the redefinition of it
Implementation
static void initController(SmoothCameraController controller) {
_controller ??= controller;
}
Init the controller And prevents the redefinition of it
static void initController(SmoothCameraController controller) {
_controller ??= controller;
}