ImageSource.file constructor

ImageSource.file(
  1. String filePath, {
  2. ImageFormat? format,
})

本地文件图片

Implementation

ImageSource.file(String filePath, {ImageFormat? format})
    : data = filePath,
      type = ImageSourceType.file,
      format = format ?? ImageFormat.unknown;