ActionType.parse constructor
ActionType.parse(
- int value
Parse an ActionType from an int.
The value
must be a valid action type.
Implementation
factory ActionType.parse(int value) => ActionType.values.firstWhere(
(type) => type.value == value,
orElse: () => throw FormatException('Unknown action type', value),
);