allureUnsupportedFilesystem function
Throws a descriptive error for filesystem operations on unsupported platforms.
Implementation
Never allureUnsupportedFilesystem(String operation) {
throw UnsupportedError(
'Allure cannot $operation on this platform (no filesystem). '
'Browser/web runtimes cannot use Platform.environment or dart:io file APIs. '
'Pass an explicit environment map where supported, or run tests on the VM / '
'desktop where Allure can write allure-results.',
);
}