TaskResult class

Result object indicating a Task was executed successfully or not.

isOk is true when task is finished without exceptions or false when not. message contains the exception message or is null when task was successful.

Constructors

TaskResult({required bool isOk, String? message})
Create a new result with a message if there was an exception.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isOk bool
Is true when successful or false when not.
final
message String?
Exception message if there is any.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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