showPaymentSnackBar function

  1. @Deprecated('Use showPaymentToast.')
ScaffoldFeatureController<SnackBar, SnackBarClosedReason> showPaymentSnackBar(
  1. BuildContext context, {
  2. required String message,
  3. StatusTone tone = StatusTone.neutral,
  4. String? actionLabel,
  5. VoidCallback? onAction,
})

Deprecated wrapper of showPaymentToast returning the Material controller.

Implementation

@Deprecated('Use showPaymentToast.')
ScaffoldFeatureController<SnackBar, SnackBarClosedReason> showPaymentSnackBar(
  BuildContext context, {
  required String message,
  StatusTone tone = StatusTone.neutral,
  String? actionLabel,
  VoidCallback? onAction,
}) => _showToast(
  context,
  message: message,
  tone: tone,
  actionLabel: actionLabel,
  onAction: onAction,
)._feature;