PaywallAssetsHelper class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
getBoxDecoration(List<PaywallAsset> assets, String? backgroundId, String? borderId, List<int>? cornerRadius, String? borderThickness)
→ BoxDecoration?
-
-
getMargin(List<int>? margin)
→ EdgeInsetsGeometry
-
-
getPadding(List<int>? padding)
→ EdgeInsetsGeometry
-
-
getPaywallAssetColor(List<PaywallAsset> assets, String? assetId)
→ Color?
-
-
getPaywallAssetFontSize(List<PaywallAsset> assets, String? assetId)
→ double?
-
-
getPaywallAssetLinearGradient(List<PaywallAsset> assets, String? assetId)
→ LinearGradient?
-
Resolve a gradient asset by id. The asset's value must be a CSS-like
linear-gradient(...) string. Returns null if not found or unparsable.
-
getPaywallAssetText(List<PaywallAsset> assets, String? assetId)
→ String?
-
Get text content from assets by asset ID
-
getPaywallAssetUrl(List<PaywallAsset> assets, String? assetId)
→ Future<String?>
-
-
getPaywallAssetUrlSync(List<PaywallAsset> assets, String? assetId)
→ String?
-
-
getTextStyle(List<PaywallAsset> assets, String? fontId, String? colorId, {bool isRTL = false, BuildContext? context, String? customFontFamily})
→ TextStyle?
-
-
toColor(String? hexString, [double assetOpacity = 1.0])
→ Color?
-