dismiss static method

Future<bool> dismiss(
  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> dismiss(bool animated) {
  return channel
      .invokeMethod<bool>("dismiss", animated)
      .then<bool>((bool? value) => value ?? false);
}