counterText property

String get counterText

A human-readable counter string, e.g. "3/12", or empty when there are no results.

Implementation

String get counterText =>
    hasResults ? '${_selectedIndex + 1}/${_results.length}' : '';