InputChecklist class abstract

Describes a checklist to create.

Annotations
  • @freezed

Constructors

InputChecklist.new({@JsonKey(name: 'title') required String title, @JsonKey(name: 'parse_mode') ParseMode? parseMode, @JsonKey(name: 'title_entities') List<MessageEntity>? titleEntities, @JsonKey(name: 'tasks') required List<InputChecklistTask> tasks, @JsonKey(name: 'others_can_add_tasks') bool? othersCanAddTasks, @JsonKey(name: 'others_can_mark_tasks_as_done') bool? othersCanMarkTasksAsDone})
Creates a new InputChecklist object.
const
factory
InputChecklist.fromJson(Map<String, dynamic> json)
Creates a new InputChecklist object from a JSON Map.
factory

Properties

copyWith → $InputChecklistCopyWith<InputChecklist>
Create a copy of InputChecklist with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
othersCanAddTasks bool?
Optional. Pass True if other users can add tasks to the checklist
no setterinherited
othersCanMarkTasksAsDone bool?
Optional. Pass True if other users can mark tasks as done or not done in the checklist
no setterinherited
parseMode ParseMode?
Optional. Mode for parsing entities in the title. See formatting options for more details.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tasks List<InputChecklistTask>
List of 1-30 tasks in the checklist
no setterinherited
title String
Title of the checklist; 1-255 characters after entities parsing
no setterinherited
titleEntities List<MessageEntity>?
Optional. List of special entities that appear in the title, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this InputChecklist to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited