Uint8List? propertyAsFileContentBytes(String key, [File? def]) { var file = propertyAsFile(key, def); return file?.readAsBytesSync(); }