DefaultSearchMeUpDelegate<T> class

Default implementation of SearchMeUpDelegate

This creates a simple ranking from the given converterss and providerss, simply returning all combinations of each converter and provider, using the order of the converter, and then the provider. (converter1, converter2 and provider1 and provider2 will lead to <converter1 provider1>, <converter1 provider2>, <converter2, provider1>, <converter2, provider2>)

Implemented types

Constructors

DefaultSearchMeUpDelegate({List<SMUTextConverter<T>> converters = const [defaultSMUTextConverter], List<SMUTextSearcherProvider> providers = const [frontTextSearcher, inlineTextSearcher, orderTextSearcher]})
converters and providers are combined to create the return value of generateSearchLogic. All combinations will be made, ordered first by the converters, and then second the providers order.

Properties

converters List<SMUTextConverter<T>>
final
hashCode int
The hash code for this object.
no setterinherited
providers List<SMUTextSearcherProvider>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateSearchLogic(String searchText) Iterable<Tuple2<SMUTextConverter<T>, SMUTextSearcher>>
Generates the search logic to be used by a SearchMeUp.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited