getToastText method

String getToastText(
  1. String type
)

Implementation

String getToastText(String type) {
  String toastText = "你需要授权权限方可使用此功能";
  if (type != "") {
    toastText = type;
  }
  return toastText;
}