findExist method

  1. @override
Future<Uint8List?> findExist(
  1. String url,
  2. InternetFileStorageAdditional additional
)
override

Implementation

@override
Future<Uint8List?> findExist(
  String url,
  InternetFileStorageAdditional additional,
) {
  final file = _fileByAdditional(additional);

  return file.existsSync() ? file.readAsBytes() : Future.value(null);
}