ForgeOutcome class

Result of one Forge call. Forge accepts events asynchronously: an accepted outcome means the fact was enqueued to the analytics runtime, not that a request already reached NPAW.

Constructors

ForgeOutcome(ForgeOutcomeKind kind, {String? message, String? rawKind})
const
ForgeOutcome.fromKindString(String? kind, {String? message})
Maps a canonical snake_case outcome kind to the typed enum.
factory
ForgeOutcome.localError(String message)
Builds a local error outcome without touching the native runtime.
factory
ForgeOutcome.parseJson(String? outcomeJson)
Parses a {"kind":"...","message":"..."} outcome JSON string.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isAccepted bool
True when the runtime took ownership of the fact (accepted or deferred).
no setter
isError bool
no setter
kind ForgeOutcomeKind
final
message String?
final
rawKind String?
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.
override

Operators

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