NullableStringExtensions extension
- on
Properties
- isNotNullable → bool
-
The inverse of isNullable
no setter
- isNullable → bool
-
Checks if a string can be considered null given a certain rules
no setter
- orEmpty → String
-
returns a empty text if input value is null
no setter
Methods
-
testNullability(
[List< StringTester> nullabilityRules = const []]) → bool -
Tests a
nullability
of any string following the base nullability rule, plus a list of any nullable comparators. If the value is nullable or matches any of the nullable values, returns true;