SegmentationImage constructor

SegmentationImage({
  1. List<int>? data,
  2. int? width,
  3. int? height,
  4. SegmentationPixelFormat? pixelFormat,
})

Implementation

factory SegmentationImage({
  $core.List<$core.int>? data,
  $core.int? width,
  $core.int? height,
  SegmentationPixelFormat? pixelFormat,
}) {
  final result = create();
  if (data != null) result.data = data;
  if (width != null) result.width = width;
  if (height != null) result.height = height;
  if (pixelFormat != null) result.pixelFormat = pixelFormat;
  return result;
}