showSuccess static method
成功提示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,
);
}