fromVersion static method

EIP712Version fromVersion(
  1. int? version
)

Implementation

static EIP712Version fromVersion(int? version) {
  return values.firstWhere((e) => e.version == version,
      orElse: () => throw SolidityAbiException(
              "Invalid EIP712Version version.",
              details: {
                "version": version,
                "excepted": values.map((e) => e.version).join(", ")
              }));
}