fromPlatformCode static method

InAppUpdateErrorCode fromPlatformCode(
  1. String code
)

Maps a platform error code to its InAppUpdateErrorCode, or unknown.

Implementation

static InAppUpdateErrorCode fromPlatformCode(String code) => values
    .firstWhere((value) => value.platformCode == code, orElse: () => unknown);