platformTypes static method

MraaPlatformType platformTypes(
  1. int type
)

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!;
}