fromURL static method

Future<ImagePickerData> fromURL(
  1. String url
)

Implementation

static Future<ImagePickerData> fromURL(String url) async {
  File file = await _cache.getSingleFile(url);
  return ImagePickerData(
    id: file.path.hashCode,
    url: url,
    name: basenameWithoutExtension(file.path),
    path: file.path,
  );
}