hidePhone static method
隐藏部分手机号 Hide part of phone number
Implementation
static String hidePhone(String phone, {int start = 3, int end = 7, String replace = '*'}) {
if (phone.length < 11) return phone;
return phone.replaceRange(start, end, replace * (end - start));
}