ForumTopic class abstract
This object represents a forum topic.
- Available extensions
- Annotations
-
- @freezed
Constructors
- ForumTopic({@JsonKey.new(name: 'message_thread_id') required int messageThreadId, @JsonKey.new(name: 'name') required String name, @JsonKey.new(name: 'icon_color') required int iconColor, @JsonKey.new(name: 'icon_custom_emoji_id') String? iconCustomEmojiId, @JsonKey.new(name: 'is_name_implicit') bool? isNameImplicit})
-
Creates a new ForumTopic object.
constfactory
-
ForumTopic.fromJson(Map<
String, dynamic> json) -
Creates a new ForumTopic object from json.
factory
Properties
-
copyWith
→ $ForumTopicCopyWith<
ForumTopic> -
Create a copy of ForumTopic
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconColor → int
-
Color of the topic icon in RGB format
no setterinherited
- iconCustomEmojiId → String?
-
Optional. Unique identifier of the custom emoji shown as the topic icon
no setterinherited
- isNameImplicit → bool?
-
Optional. True, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot
no setterinherited
- messageThreadId → int
-
Unique identifier of the forum topic
no setterinherited
- name → String
-
Name of the topic
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_ForumTopic value)) → TResult -
Available on ForumTopic, provided by the ForumTopicPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ForumTopic value)?) → TResult? -
Available on ForumTopic, provided by the ForumTopicPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_ForumTopic value)?, {required TResult orElse()}) → TResult -
Available on ForumTopic, provided by the ForumTopicPatterns extension
A variant ofmapthat fallback to returningorElse. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ForumTopic to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited