hint property

  1. @override
String get hint
override

Returns a text-represented hint for this CallButton.

Implementation

@override
String get hint {
  bool isAudio =
      c.audioState.value == LocalTrackState.enabled ||
      c.audioState.value == LocalTrackState.enabling;

  return c.isMobile
      ? isAudio
          ? 'btn_call_audio_off_desc'.l10n
          : 'btn_call_audio_on_desc'.l10n
      : isAudio
      ? 'btn_call_audio_off'.l10n
      : 'btn_call_audio_on'.l10n;
}