TextCompositionParameters class
Describes parameters of text composition with AI
- Inheritance
- Available extensions
- Annotations
-
- @immutable
Constructors
- TextCompositionParameters({required String translateToLanguageCode, required String styleName, required bool addEmojis, required bool fixText})
-
const
Properties
- addEmojis → bool
-
addEmojis True, if emoji will be added to the text
final
- fixText → bool
-
fixText True, if the text will be fixed in the same way as by
fixTextWithAi
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- styleName → String
-
styleName Name of the style of the resulting text; may be empty if none.
Handle updateTextCompositionStyles to get the list of supported styles
final
- translateToLanguageCode → String
-
translateToLanguageCode Language code to which the text will be
translated; may be empty if none. See translateText.to_language_code for
the list of supported values
final
Methods
-
copyWith(
{String? translateToLanguageCode, String? styleName, bool? addEmojis, bool? fixText}) → TextCompositionParameters -
Available on TextCompositionParameters, provided by the TextCompositionParametersExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Map< String, dynamic> ? json) → TextCompositionParameters?
Constants
- constructor → const String