TypeAheadTextFieldController class Null safety



TypeAheadTextFieldController({required Set<String> appliedPrefixes, required GlobalKey<EditableTextState> textFieldKey, TextSpan customSpanBuilder(SuggestedDataWrapper data)?, dynamic onRemove(List<SuggestedDataWrapper> data)?, EdgeInsets? edgePadding = const EdgeInsets.only(left: 8, right: 0, top: 20, bottom: 0), dynamic onStateChanged(PrefixMatchState? prefixMatchState)?, Set<SuggestedDataWrapper>? suggestibleData})


appliedPrefixes Set<String>
which prefixes you want to catch, support multiple prefixes e.g @, #, &, ...
read / write
customSpanBuilder ↔ (TextSpan Function?(SuggestedDataWrapper data)?)
custom span for matching text
read / write
devicePixelRatio double?
read / write
edgePadding EdgeInsets?
padding to the suggestion dialog
hashCode int
The hash code for this object. [...]
read-only, inherited
hasListeners bool
Whether any listeners are currently registered. [...]
@protected, read-only, inherited
onRemove ↔ (dynamic Function?(List<SuggestedDataWrapper> data)?)
call when a matching text get removed
read / write
onStateChanged ↔ (dynamic Function?(PrefixMatchState? prefixMatchState)?)
called when match or non match the prefix
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scrollController ScrollController
set this scroll controller to TextField constructor to translate the suggestion dialog base on scroll controller offset
selection TextSelection
The currently selected text. [...]
read / write, inherited
text String
The current string the user is editing.
read / write, inherited
textFieldKey GlobalKey<EditableTextState>
the TextField Key, of course
late, final
value TextEditingValue
The current value stored in this notifier. [...]
read / write, inherited


addListener(VoidCallback listener) → void
Register a closure to be called when the object changes. [...]
approveSelection(PrefixMatchState state, SuggestedDataWrapper data) → void
buildTextSpan({BuildContext? context, TextStyle? style, bool? withComposing}) TextSpan
Builds TextSpan from current editing value. [...]
calculateGlobalOffset(BuildContext context, Offset? localOffset, {double? dialogHeight, double? dialogWidth}) Offset?
clear() → void
Set the value to empty. [...]
clearComposing() → void
Set the composing region to an empty range. [...]
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener and removeListener will throw after the object is disposed). [...]
@mustCallSuper, inherited
getApprovedData() Set<SuggestedDataWrapper>
isSelectionWithinTextBounds(TextSelection selection) bool
Check that the selection is inside of the bounds of text.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
notifyListeners() → void
Call all the registered listeners. [...]
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes. [...]
setApprovedData(Set<SuggestedDataWrapper> data) → dynamic
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]