AppwinInitResult class

What a product's initialize() answers.

A value rather than a thrown exception, deliberately. "Not entitled" is an expected outcome of a normal launch, not an error: forcing callers into a try/catch for the ordinary case pushes them towards swallowing it.

final support = await AppwinSupport.instance.initialize();
if (support.isReady) {
  setState(() => _showHelpButton = true);
}

Constructors

AppwinInitResult(AppwinInitStatus status, {AppwinUnavailableReason? reason})
const
AppwinInitResult.fromMap(Map<Object?, Object?>? map)
Parses what the native side sends over the method channel.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isReady bool
The one check a host app needs before showing a product's entry point.
no setter
reason AppwinUnavailableReason?
Set only when status is AppwinInitStatus.unavailable.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status AppwinInitStatus
final

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