static bool isValidPhone(String? phone, [RegExp? pattern]) { return phone != null && phone.isNotEmpty && (pattern ?? Patterns.phone).hasMatch(phone); }