dismissNamiPaywallIfOpen static method

Future<bool> dismissNamiPaywallIfOpen(
  1. bool animated
)

Will animate the closing of the paywall if animated is true. Returns true when paywall is dismissed, may be immediate if not presented

Implementation

static Future<bool> dismissNamiPaywallIfOpen(bool animated) {
  return channel
      .invokeMethod<bool>("dismissNamiPaywallIfOpen", animated)
      .then<bool>((bool? value) => value ?? false);
}