showSuccess static method

Future showSuccess(
  1. BuildContext context, {
  2. required String msg,
  3. int closeTime = _time,
})

成功toast

Implementation

static Future showSuccess(
  BuildContext context, {
  required String msg,
  int closeTime = _time,
}) {
  Widget img = Icon(Icons.check_circle_outline, size: _imgWH, color: _contentColor);
  return _showToast(context: context, msg: msg, image: img, stopEvent: true, closeTime: closeTime);
}