InputChecklist class abstract

Describes a checklist to create.

Available extensions
Annotations
  • @freezed

Constructors

InputChecklist({@JsonKey.new(name: 'title') required String title, @JsonKey.new(name: 'parse_mode') ParseMode? parseMode, @JsonKey.new(name: 'title_entities') List<MessageEntity>? titleEntities, @JsonKey.new(name: 'tasks') required List<InputChecklistTask> tasks, @JsonKey.new(name: 'others_can_add_tasks') bool? othersCanAddTasks, @JsonKey.new(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

map<TResult extends Object?>(TResult $default(_InputChecklist value)) → TResult

Available on InputChecklist, provided by the InputChecklistPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_InputChecklist value)?) → TResult?

Available on InputChecklist, provided by the InputChecklistPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_InputChecklist value)?, {required TResult orElse()}) → TResult

Available on InputChecklist, provided by the InputChecklistPatterns extension

A variant of map that fallback to returning orElse.
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