isValidScreenName method Null safety
- String? value
Validates the screen name.
Uses the username validation.
Implementation
static String? isValidScreenName(String? value) {
if (value == null || value.isEmpty) {
return "Field cannot be empty";
}
return value.isValidUsername ? null : "Not a valid screen name";
}