@override Future<void> openOrThrow(String path) async { final result = await OpenFile.open(path); if (result.type != ResultType.done) throw ArgumentError.value(path, 'path', 'Failed to open file.'); }