SummarizationResult class final

Result of a SummarizeFn call. Success carries text; failure carries error and optionally marks the call as isAborted.

Constructors

SummarizationResult.failure(String error, {bool aborted = false})
A failed (or aborted, when aborted is true) summarization.
factory
SummarizationResult.success(String text)
A successful summary.
factory

Properties

error → String?
The failure description on failure, null on success.
final
hashCode → int
The hash code for this object.
no setterinherited
isAborted → bool
Whether the call was aborted rather than failed.
final
isSuccess → bool
Whether the call produced a summary.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String?
The summary text on success, null on failure.
final

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