PaywallAction class final
A paywall interaction: buy the selected (or slot's) product, restore purchases, select a product, close the paywall, open a legal url, or open a server-resolved placement.
PaywallOperation.openPaywall shows the placement's screen as a navigation would: with routeTransition (a custom transition: a cover from the bottom, a reveal...) or transition, transitionMs and reverseTransitionMs; it plays in reverse when the paywall closes.
Constructors
- PaywallAction({PaywallOperation operation = PaywallOperation.purchase, String? placement, String? offer, String? slot, String? url, PageTransition transition = PageTransition.platform, int? transitionMs, int? reverseTransitionMs, RouteTransition? routeTransition, bool enabled = true, bool nonBlocking = false, Predicate? when})
-
const
Properties
- enabled → bool
-
False skips the action.
finalinherited
- fieldsJson → Json
-
Its own fields, as JSON (sparse): what toJson writes besides
typeand the common fields. An action class outside this library overrides this.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
nested
→ List<
ActionDef> -
The actions it runs itself (branches, follow-ups), in order.
no setterinherited
- nonBlocking → bool
-
The chain doesn't wait for it, and its failure doesn't stop the chain.
finalinherited
- offer → String?
-
Optional offer preference: storeDefault, trial, or standard (expressions allowed).
final
- operation → PaywallOperation
-
final
- placement → String?
-
Server-resolved placement to open; required for PaywallOperation.openPaywall.
final
- reverseTransitionMs → int?
-
final
- routeTransition → RouteTransition?
-
PaywallOperation.openPaywall: a custom transition for its screen; when
set it replaces transition, transitionMs and reverseTransitionMs
(as NavigateAction.routeTransition).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selfAndNested
→ Iterable<
ActionDef> -
This action, then every action nested in it, depth first.
no setterinherited
- slot → String?
-
final
- transition → PageTransition
-
PaywallOperation.openPaywall: how its screen opens, as
NavigateAction.transition (and its durations) does.
final
- transitionMs → int?
-
final
- type → String
-
The JSON
type.no setteroverride - url → String?
-
final
- when → Predicate?
-
Runs only when it holds; null: always.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited