show static method

Future<void> show(
  1. BuildContext context, {
  2. required String featureName,
  3. required String description,
  4. required List<BankPlanTier> plans,
  5. String? currentTierId,
  6. ValueChanged<BankPlanTier>? onUpgrade,
  7. VoidCallback? onDismiss,
  8. EdgeInsetsGeometry? padding,
  9. BorderRadius? radius,
  10. Color? backgroundColor,
  11. Color? accentColor,
  12. List<BoxShadow>? cardShadow,
  13. IconData? headerIcon,
  14. TextStyle? titleStyle,
  15. TextStyle? descriptionStyle,
  16. String headlineTemplate = 'Upgrade to access {feature}',
  17. String dismissLabel = 'Maybe later',
  18. String upgradeLabel = 'Upgrade',
  19. String currentPlanLabel = 'Current plan',
  20. String perMonthLabel = '/mo',
  21. Widget? header,
  22. Widget? footer,
  23. String? semanticLabel,
})

Implementation

static Future<void> show(
  BuildContext context, {
  required String featureName,
  required String description,
  required List<BankPlanTier> plans,
  String? currentTierId,
  ValueChanged<BankPlanTier>? onUpgrade,
  VoidCallback? onDismiss,
  EdgeInsetsGeometry? padding,
  BorderRadius? radius,
  Color? backgroundColor,
  Color? accentColor,
  List<BoxShadow>? cardShadow,
  IconData? headerIcon,
  TextStyle? titleStyle,
  TextStyle? descriptionStyle,
  String headlineTemplate = 'Upgrade to access {feature}',
  String dismissLabel = 'Maybe later',
  String upgradeLabel = 'Upgrade',
  String currentPlanLabel = 'Current plan',
  String perMonthLabel = '/mo',
  Widget? header,
  Widget? footer,
  String? semanticLabel,
}) =>
    showModalBottomSheet<void>(
      context: context,
      isScrollControlled: true,
      backgroundColor: Colors.transparent,
      builder: (_) => BankPaywallSheet(
        featureName: featureName,
        description: description,
        plans: plans,
        currentTierId: currentTierId,
        onUpgrade: onUpgrade,
        onDismiss: onDismiss,
        padding: padding,
        radius: radius,
        backgroundColor: backgroundColor,
        accentColor: accentColor,
        cardShadow: cardShadow,
        headerIcon: headerIcon,
        titleStyle: titleStyle,
        descriptionStyle: descriptionStyle,
        headlineTemplate: headlineTemplate,
        dismissLabel: dismissLabel,
        upgradeLabel: upgradeLabel,
        currentPlanLabel: currentPlanLabel,
        perMonthLabel: perMonthLabel,
        header: header,
        footer: footer,
        semanticLabel: semanticLabel,
      ),
    );