static bool length(String? value, min, max) { if (value != null) { return value.length >= min && value.length <= max; } return false; }