tryResolveScenarioPath method

Future<String?> tryResolveScenarioPath(
  1. String path
)

Override to resolve special scenario path values. Return a file system path, or null to fall back to resolveScenarioPath.

Implementation

Future<String?> tryResolveScenarioPath(String path) async {
  final trimmed = path.trim();
  if (trimmed.isEmpty) return null;
  if (io.File(trimmed).existsSync()) return trimmed;
  return null;
}