platformTypes static method
Implementation
static MraaPlatformType platformTypes(int type) {
if (byCode.isEmpty) {
for (final type in MraaPlatformType.values) {
byCode[type.code] = type;
}
}
final ret = byCode.containsKey(type)
? byCode[type]
: MraaPlatformType.unknownPlatform;
return ret!;
}