showToast method

void showToast(
  1. String? msg
)

展示toast

Implementation

void showToast(String? msg) {
  if (msg != null) {
    Fluttertoast.showToast(msg: msg);
  }
}