showSuccess static method

void showSuccess({
  1. int? duration,
  2. String? titleText,
  3. Widget? title,
  4. String? subtitleText,
  5. Widget? subtitle,
  6. bool showProgressBar = false,
  7. ToastificationCallbacks? callbacks,
})

显示成功通知

Implementation

static void showSuccess({
  int? duration,
  String? titleText,
  Widget? title,
  String? subtitleText,
  Widget? subtitle,
  bool showProgressBar = false,
  ToastificationCallbacks? callbacks,
}) {
  _show(
    titleText: titleText,
    duration: duration,
    color: AppTheme.successColor,
    backgroundColor: AppTheme.successColorTertiary,
    title: title,
    subtitleText: subtitleText,
    subtitle: subtitle,
    showProgressBar: showProgressBar,
    callbacks: callbacks,
    type: ToastificationType.success,
  );
}