toast_util.dart 362 B

1234567891011121314
  1. import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
  2. class ToastUtil {
  3. ToastUtil._();
  4. static void showToast(String? msg,
  5. {Duration? displayTime,
  6. SmartToastType? displayType = SmartToastType.normal}) {
  7. if (msg != null) {
  8. SmartDialog.showToast(msg,
  9. displayType: displayType, displayTime: displayTime);
  10. }
  11. }
  12. }