copyWith method

TranslateText copyWith({
  1. FormattedText? text,
  2. String? toLanguageCode,
})

Implementation

TranslateText copyWith({
  FormattedText? text,
  String? toLanguageCode,
}) =>
    TranslateText(
      text: text ?? this.text,
      toLanguageCode: toLanguageCode ?? this.toLanguageCode,
    );