saveResizedPng method

void saveResizedPng(
  1. int iconSize,
  2. String filePath
)

Save the resized image to a file

Implementation

void saveResizedPng(int iconSize, String filePath) {
  final data = encodePng(copyResized(iconSize).image);
  final file = File(filePath);
  file.createSync(recursive: true);
  file.writeAsBytesSync(data);
}