validatePlatform function
Implementation
ValidationResult validatePlatform(String platform) {
if (!supportedPlatforms.contains(platform)) {
return ValidationFailure(
ruleName: 'supported_platform',
message:
'Platform "$platform" is not supported. Allowed platforms are: ${supportedPlatforms.join(', ')}.',
);
}
return const ValidationSuccess();
}