mxLine property
int?
get
mxLine
mxLine
The maximum number of lines to be displayed in a FormifyTextField
widget.
If the keyboardType
of the widget is set to TextInputType.multiline
, this property returns null
to indicate that
the input field can have an unlimited number of lines. Otherwise, it returns the value of the maxLines
property.
This property simplifies the management of the maxLines
property based on the keyboardType
.
Implementation
int? get mxLine {
if (keyboardType == TextInputType.multiline) {
return null;
}
return maxLines;
}