set method

Future<void> set(
  1. Uint8List image
)

Implementation

Future<void> set(Uint8List image) async {
  if (kCanRunProcess) {
    final file = _getAssetFile();

    await file.writeAsBytes(image);
    return;
  }

  throw Exception('Cannot cache image on the web');
}