eventStatusFromInt function

EventStatus eventStatusFromInt(
  1. int intValue
)

Returns EventStatusEnum value from intValue.

  • -2 == removed;
  • -1 == error;
  • 0 == sending;
  • 1 == sent;
  • 2 == synced;
  • 3 == roomState;

Implementation

EventStatus eventStatusFromInt(int intValue) =>
    EventStatus.values[intValue + 2];