showSuccess static method

String showSuccess(
  1. String? text, {
  2. IconTextDirection direction = IconTextDirection.horizontal,
  3. required BuildContext context,
  4. Duration duration = const Duration(milliseconds: 3000),
  5. bool? preventTap,
  6. Color? backgroundColor,
  7. int? maxLines,
  8. TextStyle? textStyle,
  9. double? iconSize,
  10. Color? iconColor,
  11. String? toastId,
})

成功提示Toast

Implementation

static String showSuccess(
  String? text, {
  IconTextDirection direction = IconTextDirection.horizontal,
  required BuildContext context,
  Duration duration = const Duration(milliseconds: 3000),
  bool? preventTap,
  Color? backgroundColor,
  int? maxLines,
  TextStyle? textStyle,
  double? iconSize,
  Color? iconColor,
  String? toastId,
}) {
  return showIconText(
    text,
    icon: TDIcons.check_circle,
    direction: direction,
    context: context,
    duration: duration,
    preventTap: preventTap,
    backgroundColor: backgroundColor,
    maxLines: maxLines,
    textStyle: textStyle,
    iconSize: iconSize,
    iconColor: iconColor,
    toastId: toastId,
  );
}