Outcome class
Interprets a result so that humans and machines can act on it.
Constructors
-
Outcome({Input<
FailureDetail> ? failureDetail, Input<InconclusiveDetail> ? inconclusiveDetail, Input<SkippedDetail> ? skippedDetail, Input<SuccessDetail> ? successDetail, Input<OutcomeSummary> ? summary}) -
Creates a new Outcome.
failureDetailMore information about a FAILURE outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not FAILURE. OptionalinconclusiveDetailMore information about an INCONCLUSIVE outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not INCONCLUSIVE. OptionalskippedDetailMore information about a SKIPPED outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not SKIPPED. OptionalsuccessDetailMore information about a SUCCESS outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not SUCCESS. OptionalsummaryThe simplest way to interpret a result. Requiredconst -
Outcome.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
failureDetail
→ Input<
FailureDetail> ? -
More information about a FAILURE outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not FAILURE. Optional
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inconclusiveDetail
→ Input<
InconclusiveDetail> ? -
More information about an INCONCLUSIVE outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not INCONCLUSIVE. Optional
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
skippedDetail
→ Input<
SkippedDetail> ? -
More information about a SKIPPED outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not SKIPPED. Optional
final
-
successDetail
→ Input<
SuccessDetail> ? -
More information about a SUCCESS outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not SUCCESS. Optional
final
-
summary
→ Input<
OutcomeSummary> ? -
The simplest way to interpret a result. Required
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited