password static method

String? password(
  1. String? value
)

Implementation

static String? password(String? value) {
  if (value == null || value.isEmpty) return 'Password is required';
  if (value.length < 8) return 'Password must be at least 8 characters';
  return null;
}