open method

  1. @override
Future<void> open(
  1. String token,
  2. MoonetixOptions options
)
override

Opens the offerwall with a validated session token. Errors that happen later (network, expired token) arrive on events.

Throws a PlatformException whose code is a MoonetixErrorCode.wireName when the offerwall cannot be opened at all.

Implementation

@override
Future<void> open(String token, MoonetixOptions options) {
  return channel.invokeMethod<void>(
    'open',
    <String, Object?>{'token': token, ...options.toMap()},
  );
}