min static method

String? min(
  1. String? value, {
  2. String? message,
  3. required int length,
})

Check if the value is more than or equal to the given minimum value.

Implementation

static String? min(String? value, {String? message, required int length}) =>
    value == null || value.isEmpty || value.length >= length ?  null : message ?? 'Please enter a value greater than or equal to $length';