store method

Future<String> store(
  1. String path, {
  2. String? disk,
})

Saves the PNG to path on disk, or on the default disk, and returns path.

Implementation

Future<String> store(String path, {String? disk}) async {
  await FileStorage.disk(disk).put(path, bytes);
  return path;
}