statusText property

String get statusText

Implementation

String get statusText {
  switch (_state) {
    case CallState.connected:
      return 'Connected • $formattedDuration';
    case CallState.joining:
    case CallState.requestingToken:
    case CallState.initializing:
    case CallState.waiting:
      return 'Calling...';
    case CallState.reconnecting:
      return 'Reconnecting...';
    case CallState.ending:
      return 'Ending call...';
    case CallState.ended:
      return 'Call ended';
    case CallState.error:
      return 'Connection error';
    default:
      return 'Connecting...';
  }
}