CustomVariableValue class sealed
A value type for custom paywall variables that can be passed to paywalls at runtime.
Custom variables allow developers to personalize paywall text with dynamic values. Variables are defined in the RevenueCat dashboard and can be overridden at runtime.
Usage
RevenueCatUI.presentPaywall(
customVariables: {
'player_name': CustomVariableValue.string('John'),
'level': CustomVariableValue.string('42'),
},
);
In the paywall text (configured in the dashboard), use the custom. prefix:
Hello {{ custom.player_name }}!
- Implementers
Constructors
- CustomVariableValue.string(String value)
-
Creates a string custom variable value.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringValue → String
-
Returns the string representation of this value.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited