CameraThumb constructor

const CameraThumb({
  1. Key? key,
  2. required ValueListenable<XCameraController?> controller,
  3. Widget? child,
  4. Color? color,
})

Creates the preview; color defaults to black.

Implementation

const CameraThumb({
  super.key,
  required this.controller,
  this.child,
  Color? color,
}) : color = color ?? const Color(0xFF000000);