# ChatMarker.fromName constructor

ChatMarker.fromName(

1. String name

)

## Implementation

    factory ChatMarker.fromName(String name) {
      switch (name) {
        case 'received':
          return ChatMarker.received;
        case 'displayed':
          return ChatMarker.displayed;
        case 'acknowledged':
          return ChatMarker.acknowledged;
      }

      throw Exception('Invalid chat marker $name');
    }