CancelTaskResult class final
Revisions: 2025-11-25, ext-tasks/2026-07-28.
Constructors
-
CancelTaskResult({ResultMetaObject? meta, String? createdAt, String? lastUpdatedAt, int? pollInterval, TaskStatus? status, String? statusMessage, String? taskId, Object? ttl = absent, Map<
String, Object?> ? extra}) -
CancelTaskResult.fromJson(Map<
String, Object?> json) -
Wraps
jsonas received; nothing is dropped.
Properties
- createdAt → String?
-
ISO 8601 timestamp when the task was created.
no setter
-
extra
→ Map<
String, Object?> -
Keys outside the schema (newer revisions, extensions, applications).
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastUpdatedAt → String?
-
ISO 8601 timestamp when the task was last updated.
no setter
- meta → ResultMetaObject?
-
no setter
- pollInterval → int?
-
Suggested polling interval in milliseconds.
no setter
- resultType → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
schemaKeys
→ Set<
String> -
Property names the schema defines for this type.
no setteroverride
- status → TaskStatus?
-
Current task state.
no setter
- statusMessage → String?
-
Optional human-readable message describing the current task state.
This can provide context for any status, including:
no setter
- taskId → String?
-
The task identifier.
no setter
- ttl → int?
-
Actual retention duration from creation in milliseconds, null for unlimited.
no setter
Methods
-
$optional<
T> (String key, T? read(Object? value, String path)) → T? -
Optional property
key, converted byread;nullwhen absent or null.inherited -
$required<
T> (String key, T read(Object? value, String path)) → T -
Required property
key, converted byread.inherited -
check(
) → List< String> -
Reads every property this type defines and returns what could not be
read (missing required properties, wrong types), nested types included.
Empty = the JSON matches the schema's shape for this type.
override
-
copyWith(
{ResultMetaObject? meta, String? createdAt, String? lastUpdatedAt, int? pollInterval, TaskStatus? status, String? statusMessage, String? taskId, Object? ttl = absent}) → CancelTaskResult - A copy with the given properties replaced; everything else, unknown keys included, is kept.
-
has(
String key) → bool -
Whether
keyis present (anullvalue counts as present).inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
The JSON form of this value.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Equal when the JSON is equal; key order does not matter.
inherited
-
operator [](
String key) → Object? -
The raw JSON value of
key.inherited