textValidation property
Gets or sets the predicate that determines whether or not a user-edited string of text is valid. If this is non-null, the predicate is called in addition to any TextEditingTool#textValidation predicate. See TextEditingTool#isValidText for more details.
function(textBlock, oldString, newString)
The default predicate is null, which is equivalent to simply returning true.
The function, if supplied, must not have any side-effects, and must return true or false.
Implementation
_i2.bool Function(
_i3.TextBlock,
_i2.String,
_i2.String,
)? get textValidation => (
_i3.TextBlock p0,
_i2.String p1,
_i2.String p2,
) =>
_i4.callMethod(
_i4.getProperty(
this,
'textValidation',
),
r'call',
[
this,
p0,
p1,
p2,
],
);