Checklist class final
Describes a checklist
Constructors
-
Checklist({required FormattedText title, required List<
ChecklistTask> tasks, required bool othersCanAddTasks, required bool canAddTasks, required bool othersCanMarkTasksAsDone, required bool canMarkTasksAsDone}) -
Describes a checklist
const
-
Checklist.fromJson(Map<
String, dynamic> json) -
Parses a Checklist from TDLib JSON.
factory
Properties
- canAddTasks → bool
-
True, if the current user can add tasks to the list if they have Telegram Premium subscription
final
- canMarkTasksAsDone → bool
-
True, if the current user can mark tasks as done or not done if they have Telegram Premium subscription
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- othersCanAddTasks → bool
-
True, if users other than creator of the list can add tasks to the list
final
- othersCanMarkTasksAsDone → bool
-
True, if users other than creator of the list can mark tasks as done or not done. If true, then the checklist is called "group checklist"
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tasks
→ List<
ChecklistTask> -
List of tasks in the checklist
final
- title → FormattedText
-
Title of the checklist; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities
final
Methods
-
copyWith(
{FormattedText? title, List< ChecklistTask> ? tasks, bool? othersCanAddTasks, bool? canAddTasks, bool? othersCanMarkTasksAsDone, bool? canMarkTasksAsDone}) → Checklist -
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.