TextCompositionStyle class final
Describes a style that can be used to compose a text
Constructors
- TextCompositionStyle({required String name, required int customEmojiId, required String title, required bool isCustom, required bool isCreator, required int installCount, required String prompt, required int creatorUserId, TextCompositionStyleExample? englishExample, dynamic extra, int? clientId})
-
Describes a style that can be used to compose a text
const
-
TextCompositionStyle.fromJson(Map<
String, dynamic> json) -
Parses a TextCompositionStyle from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- creatorUserId → int
-
User identifier of the creator of the style; 0 if none or unknown
final
- customEmojiId → int
-
Identifier of the custom emoji corresponding to the style; 0 if none
final
- englishExample → TextCompositionStyleExample?
-
Example of the style usage in English; may be null if unknown
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- installCount → int
-
Number of users that installed the style; for created custom styles only; 0 if unknown
final
- isCreator → bool
-
True, if the user is creator of the style
final
- isCustom → bool
-
True, if the style is created by a user
final
- name → String
-
Name of the style
final
- prompt → String
-
Prompt of the style; for created custom styles only
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
Title of the style in the user application's language
final
Methods
-
copyWith(
{String? name, int? customEmojiId, String? title, bool? isCustom, bool? isCreator, int? installCount, String? prompt, int? creatorUserId, TextCompositionStyleExample? englishExample()?, dynamic extra, int? clientId}) → TextCompositionStyle -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.