max static method
Check if the value is less than the given maximum value.
Implementation
static String? max(String? value, {String? message, required int length}) =>
value == null || value.isEmpty || value.length <= length ? null : message ?? 'Please enter a value less than or equal to $length';