InteractionContextType.parse constructor

InteractionContextType.parse(
  1. int value
)

Parse an InteractionContextType from an int.

The value must be a valid interaction context type.

Implementation

factory InteractionContextType.parse(int value) => InteractionContextType.values.firstWhere(
      (type) => type.value == value,
      orElse: () => throw FormatException('Unknown InteractionContextType', value),
    );