TranslateText constructor

const TranslateText({
  1. required FormattedText text,
  2. required String toLanguageCode,
})

Translates a text to the given language. If the current user is a Telegram Premium user, then text formatting is preserved

Implementation

const TranslateText({
  required this.text,
  required this.toLanguageCode,
});