fromPlatformCode static method
Maps a platform error code to its InAppUpdateErrorCode, or unknown.
Implementation
static InAppUpdateErrorCode fromPlatformCode(String code) => values
.firstWhere((value) => value.platformCode == code, orElse: () => unknown);