InputImage.fromBytes constructor

InputImage.fromBytes({
  1. required Uint8List bytes,
  2. required InputImageData inputImageData,
})

Create InputImage using bytes.

Implementation

factory InputImage.fromBytes(
    {required Uint8List bytes, required InputImageData inputImageData}) {
  return InputImage._(
      bytes: bytes, imageType: 'bytes', inputImageData: inputImageData);
}