writeFile method

  1. @override
Future<void> writeFile(
  1. String filePath,
  2. Uint8List data
)
override

Writes bytes to a file at the given path Creates the file if it doesn't exist, overwrites if it does

Implementation

@override
Future<void> writeFile(String filePath, Uint8List data) async {
  final file = File(filePath);
  await file.create(recursive: true);
  await file.writeAsBytes(data);
}