normalizePlatform static method

String? normalizePlatform(
  1. String? platform
)

Implementation

static String? normalizePlatform(String? platform) {
  if (platform == null) return null;
  platform = normalizeName(platform);
  return platform.isEmpty ? null : platform;
}