DevToolsFind class
Searches every tab and picks the current match; views bring it on screen themselves through FindAware and FindText.
- Inheritance
-
- Object
- ChangeNotifier
- DevToolsFind
Constructors
-
DevToolsFind(List<
FindSource> sources)
Properties
- current → FindHit?
-
The selected match, or null when there's none.
no setter
- currentTab ↔ int
-
The tab on screen, so a fresh search starts there instead of jumping elsewhere.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
hits
→ List<
FindHit> -
Every match across all tabs, in order.
no setter
- isActive → bool
-
Whether a search is running.
no setter
- needle → String
-
The applied search text, lowercased; empty while there's nothing to find.
no setter
- position → int
-
The 1-based position of current, or 0 when there's none.
no setter
- revealedVersion ↔ int
-
The revealVersion whose match is already scrolled into view.
getter/setter pair
- revealPending → bool
-
Whether current still has to be scrolled into view.
no setter
- revealVersion ↔ int
-
Bumped on every step, so views can tell a step apart from a data refresh.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sources
→ List<
FindSource> -
One per tab, in tab order.
final
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
countIn(
int tab) → int -
How many matches
tabhas. -
dispose(
) → void -
Discards any resources used by the object.
override
-
markRevealed(
) → void -
Called by the
FindTextthat brought current on screen. -
next(
) → void - Selects the next match, wrapping around.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
previous(
) → void - Selects the previous match, wrapping around.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
search(
String value) → void - Waits for a short pause in typing so each keystroke doesn't re-search every body; clearing applies at once.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
maybeOf(
BuildContext context, {bool listen = true}) → DevToolsFind? - The find controller of the nearest panel, or null outside one, where text renders without highlights.