storeBytes method
Stores a file in the application's directory.
Implementation
@override
Future<void> storeBytes(String pathKey, String name, Uint8List bytes) async {
try {
final key = '$pathKey/$name';
await filesBox.put(key, bytes);
logger.log(_label, 'Successfully saved file $pathKey/$name');
} catch (e, stacktrace) {
throw CodelesslyException.fileIoException(
message: 'Failed to save file $pathKey/$name',
originalException: e,
stacktrace: stacktrace,
);
}
}