SearchableElement constructor

const SearchableElement({
  1. required SearchableType type,
  2. required SearchableHitType hitType,
  3. required Searchable searchable,
  4. required String text,
})

Implementation

const factory SearchableElement({
  /// Type of the searchable object
  required SearchableType type,

  /// Type of the item found by the search
  required SearchableHitType hitType,

  /// Parent searchable object
  required Searchable searchable,

  /// Matching text from the search
  required String text,
}) = _SearchableElement;