searchMetadatas method

  1. @override
Future<Iterable<Metadata>> searchMetadatas(
  1. String search,
  2. int limit
)
override

Implementation

@override
Future<Iterable<Metadata>> searchMetadatas(String search, int limit) async {
  return isar_ds.isar.dbMetadatas
      .where()
      .splitDisplayNameWordsElementStartsWith(search)
      .or()
      .splitNameWordsElementStartsWith(search)
      .findAll()
      .take(limit);
}