showErr method

String? showErr(
  1. BuildContext context
)

Implementation

String? showErr(BuildContext context) {
  if (valid()) return null;
  String? msg = message == null ? "未知错误" : message;
  return msg;
}