InAppCustomMethodCompletion class

Completion handler used to resolve a custom method invoked from an in-app message. Resolve it exactly once — the first resolution wins and any later call is ignored.

Constructors

InAppCustomMethodCompletion(void _onSuccess(Object? result), void _onFailure(String errorMessage))

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

failure(String errorMessage) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
success(Object? result) → void
Resolves the pending in-app message Promise. result is an optional value of any type
toString() → String
A string representation of this object.
inherited

Operators

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