minLength static method
Check if the value's length is more than or equal to the given minimum length.
Implementation
static String? minLength(String? value, {String? message, required int length}) =>
value == null || value.isEmpty || value.length >= length ? null : message ?? 'Please enter an input of at least $length characters';