InputImage.fromFile constructor

InputImage.fromFile(
  1. File file
)

Creates an instance of InputImage by passing a file.

Implementation

factory InputImage.fromFile(File file) {
  return InputImage._(filePath: file.path, type: InputImageType.file);
}