inputPasswordValid method

bool inputPasswordValid({
  1. String? msg = '请输入密码',
  2. String? notInRangeMsg,
})

Implementation

bool inputPasswordValid({String? msg = '请输入密码', String? notInRangeMsg}) {
  if (this.isTextEmpty) {
    msg.toast();
    return false;
  }
  if (this.mxText.length < 5) {
    notInRangeMsg.toast();
    return false;
  }
  return true;
}