TextEditingControllerFS extension
provides extensions on TextEditingController
Properties
- isBlank → bool
-
Available on TextEditingController, provided by the TextEditingControllerFS extension
Returns true if the text is empty or only contains white-spacesno setter - isNotBlank → bool
-
Available on TextEditingController, provided by the TextEditingControllerFS extension
Returns true if the text is not empty or contains characters other than white-spaces.no setter - trimmed → String
-
Available on TextEditingController, provided by the TextEditingControllerFS extension
Returns trimmed textno setter
Methods
-
onChanged(
void block(String text)) → Disposable -
Available on TextEditingController, provided by the TextEditingControllerFS extension
Unlike addListener, this only callsblockwhen the text actually changes. This won't be invoked when the focus or selection of the text changes in TextField or TextFormField. -
onSelectionChanged(
void block(TextSelection selection)) → Disposable -
Available on TextEditingController, provided by the TextEditingControllerFS extension
Unlike addListener, this only callsblockwhen the selection of text actually changes. This won't be invoked when the focus or text value of the text changes in TextField or TextFormField. -
selectionChanges(
) → Stream< TextSelection> -
Available on TextEditingController, provided by the TextEditingControllerFS extension
Returns a stream of text selection changes Note that as this is an extension, it will return a new stream object every time this method is called. Call this method once and store it in a variable for further use. -
textChanges(
) → Stream< String> -
Available on TextEditingController, provided by the TextEditingControllerFS extension
Returns a stream of text changes. Note that as this is an extension, it will return a new stream object every time this method is called. Call this method once and store it in a variable for further use. -
whenBlank(
VoidCallback block) → void -
Available on TextEditingController, provided by the TextEditingControllerFS extension
Executesblockfunction only when text is blank.