Task class
Represents a task in a Kanban board.
Each task has a unique id, title, and subtitle. The title and subtitle are limited to 100 characters each.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Unique identifier for the task.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitle → String
-
The subtitle or description of the task.
Must be 100 characters or less.
final
- title → String
-
The title of the task.
Must be 100 characters or less.
final
Methods
-
copyWith(
{String? title, String? subtitle}) → Task - Creates a copy of this task with optionally updated fields.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the task to a JSON-compatible map for persistence.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override