FindController class
Controller for managing text search functionality in CodeForge.
This controller handles searching for text, navigating through matches, and highlighting results in the editor.
- Inheritance
-
- Object
- ChangeNotifier
- FindController
Constructors
- FindController(CodeForgeController _codeController)
- Creates a FindController associated with the given CodeForgeController.
Properties
- caseSensitive ↔ bool
-
The case sensitivity of the search.
getter/setter pair
- currentMatchIndex → int
-
The current match index (0-based) or -1 if no match is selected.
no setter
- findInputController → TextEditingController
-
final
- findInputFocusNode → FocusNode
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isActive ↔ bool
-
Whether the finder is currently active/visible.
getter/setter pair
- isRegex ↔ bool
-
Whether the search uses regular expressions.
getter/setter pair
- isReplaceMode ↔ bool
-
Whether the replace mode is active.
getter/setter pair
- matchCount → int
-
The number of matches found for the current query.
no setter
- matchWholeWord ↔ bool
-
Whether the search matches whole words only.
getter/setter pair
- replaceInputController → TextEditingController
-
final
- replaceInputFocusNode → FocusNode
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clear(
) → void - Clears search results and highlights.
-
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 will throw after the object is disposed).
override
-
find(
String query, {bool scrollToMatch = true}) → void - Performs a text search.
-
next(
) → void - Moves to the next match.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
previous(
) → void - Moves to the previous match.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
replace(
) → void - Replaces the currently selected match with the text in replaceInputController.
-
replaceAll(
) → void - Replaces all matches with the text in replaceInputController.
-
toggleActive(
) → void -
toggleCaseSensitive(
) → void -
toggleMatchWholeWord(
) → void -
toggleRegex(
) → void -
toggleReplaceMode(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited