getMsg static method

String getMsg(
  1. String? msg, [
  2. String? defaultTips
])

Implementation

static String getMsg(String? msg, [String? defaultTips]) {
  if (msg == null || msg.isEmpty) {
    return (defaultTips == null || defaultTips.isEmpty) ? '网络连接失败,请检查你的网络连接!' : defaultTips;
  }
  return msg;
}