NullableRule class final
Marker: null values skip the remaining rules.
Constructors
- NullableRule()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- implicit → bool
-
Implicit rules run even when the attribute is absent or empty
(
required*,present,prohibited*).no setterinherited - name → String
-
Rule identifier used in messages and the string DSL (
required).no setteroverride -
parameters
→ Map<
String, Object?> -
Placeholder values for messages (
:min,:other,:values).no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
schemaHint
→ Map<
String, Object?> -
Hint for OpenAPI generation (
{'type': 'string', 'maxLength': 32}).no setterinherited
Methods
-
after(
String dateOrField) → RuleBuilder -
afterOrEqual(
String dateOrField) → RuleBuilder -
alpha(
) → RuleBuilder -
alphaDash(
) → RuleBuilder -
alphaNum(
) → RuleBuilder -
ascii(
) → RuleBuilder -
bail(
) → RuleBuilder -
before(
String dateOrField) → RuleBuilder -
beforeOrEqual(
String dateOrField) → RuleBuilder -
between(
num min, num max) → RuleBuilder -
boolean(
) → RuleBuilder -
confirmed(
[String? field]) → RuleBuilder -
custom(
FutureOr< String?> check(ValidationContext context), {String name = 'custom'}) → RuleBuilder -
date(
) → RuleBuilder -
different(
String other) → RuleBuilder -
digits(
int length) → RuleBuilder -
digitsBetween(
int min, int max) → RuleBuilder -
distinct(
) → RuleBuilder -
email(
) → RuleBuilder -
endsWith(
List< String> suffixes) → RuleBuilder -
enumValues<
E extends Enum> (List< E> values) → RuleBuilder -
exists(
String table, [String? column]) → RuleBuilder -
extensions(
List< String> extensions) → RuleBuilder -
file(
) → RuleBuilder -
filled(
) → RuleBuilder -
image(
{bool allowSvg = false}) → RuleBuilder -
inList(
List< Object?> values) → RuleBuilder -
integer(
) → RuleBuilder -
ip(
) → RuleBuilder -
ipv4(
) → RuleBuilder -
ipv6(
) → RuleBuilder -
json(
) → RuleBuilder -
list(
) → RuleBuilder -
lowercase(
) → RuleBuilder -
map(
) → RuleBuilder -
max(
num value) → RuleBuilder -
mimes(
List< String> extensions) → RuleBuilder -
mimetypes(
List< String> types) → RuleBuilder -
min(
num value) → RuleBuilder -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notIn(
List< Object?> values) → RuleBuilder -
notRegex(
RegExp pattern) → RuleBuilder -
nullable(
) → RuleBuilder -
numeric(
) → RuleBuilder -
passes(
ValidationContext context) → String? -
override
-
password(
{int min = 8, bool letters = false, bool mixedCase = false, bool numbers = false, bool symbols = false}) → RuleBuilder -
present(
) → RuleBuilder -
prohibited(
) → RuleBuilder -
regex(
RegExp pattern) → RuleBuilder -
required(
) → RuleBuilder -
requiredIf(
String other, Object? value) → RuleBuilder -
requiredUnless(
String other, Object? value) → RuleBuilder -
requiredWith(
List< String> others) → RuleBuilder -
requiredWithout(
List< String> others) → RuleBuilder -
same(
String other) → RuleBuilder -
size(
num value) → RuleBuilder -
sometimes(
) → RuleBuilder -
startsWith(
List< String> prefixes) → RuleBuilder -
string(
) → RuleBuilder -
toString(
) → String -
A string representation of this object.
inherited
-
ulid(
) → RuleBuilder -
unique(
String table, [String? column, Object? ignore, String idColumn = 'id']) → RuleBuilder -
uppercase(
) → RuleBuilder -
url(
) → RuleBuilder -
uuid(
) → RuleBuilder
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited