InappifySdkResult<T> class

Result of a semantic SDK operation.

A successful result has no failure. A failed result always has a failure. Semantic platform operations must include snapshot on success; failures may include it when the backend has authoritative state to mirror. The coordinator rejects a successful platform result without a snapshot.

Annotations

Constructors

InappifySdkResult.failure(InappifyFailure failure, {InappifySdkSnapshot? snapshot})
factory
InappifySdkResult.success({T? data, InappifySdkSnapshot? snapshot})
factory

Properties

data → T?
final
failure → InappifyFailure?
final
hashCode → int
The hash code for this object.
no setterinherited
isSuccess → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snapshot → InappifySdkSnapshot?
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