LiveSegmentationPainter constructor

LiveSegmentationPainter({
  1. required SegmentationMask mask,
  2. required Color maskColor,
  3. bool showAllClasses = false,
  4. bool mirrorHorizontally = false,
  5. List<Color> classColors = const <Color>[],
})

Creates a painter for the given mask + styling.

Implementation

LiveSegmentationPainter({
  required this.mask,
  required this.maskColor,
  this.showAllClasses = false,
  this.mirrorHorizontally = false,
  this.classColors = const <Color>[],
});