TorchToggle constructor

const TorchToggle({
  1. Key? key,
  2. required CameraController cameraController,
  3. Alignment alignment = Alignment.bottomCenter,
  4. EdgeInsetsGeometry margin = const EdgeInsets.all(32),
})

Implementation

const TorchToggle({
  Key? key,
  required this.cameraController,
  this.alignment = Alignment.bottomCenter,
  this.margin = const EdgeInsets.all(32),
}) : super(key: key);