highlight method

  1. @override
Future highlight(
  1. int index, {
  2. bool cancelExistHighlights = true,
  3. Duration highlightDuration = _highlightDuration,
  4. bool animated = true,
})
override

highlight the item

Implementation

@override
Future highlight(int index,
    {bool cancelExistHighlights: true,
    Duration highlightDuration: _highlightDuration,
    bool animated: true}) async {
  final tag = tagMap[index];
  return tag == null
      ? null
      : await tag.highlight(
          cancelExisting: cancelExistHighlights,
          highlightDuration: highlightDuration,
          animated: animated);
}