isActive property

bool get isActive

Whether the finder is currently active/visible.

Implementation

bool get isActive => _isActive;
set isActive (bool value)

Sets whether the finder is currently active/visible.

Implementation

set isActive(bool value) {
  if (_isActive == value) return;
  _isActive = value;
  if (_isActive) {
    // Small delay to ensure widget is built before focusing, prevents focus to replace input.
    Future.microtask(() => findInputFocusNode.requestFocus());
    if (_lastQuery.isNotEmpty) {
      _reperformSearch();
    }
  } else {
    _clearMatches();
  }
  notifyListeners();
}