toText method

String toText()

Implementation

String toText() {
  switch (this) {
    case MessengerType.whatsApp:
      return 'whatsApp';
    case MessengerType.telegram:
      return 'telegram';
  }
}