验证邮政编码(中国)
bool isPostalCode(String? code) { const pattern = r'^\d{6}$'; return hasMatch(code, pattern); }