matchesPlatform method
Implementation
bool matchesPlatform(String? platform) {
if (platforms.isEmpty || platform == null || platform.isEmpty) return true;
platform = platform.trim();
for (var re in platforms) {
if (re.hasMatch(platform)) return true;
}
return false;
}