findFactSchemas method

Future<List<FactDateSchemaQuery>> findFactSchemas(
  1. String queryText
)
override

Looks for fact schemas that match queryText. Searches name, label, factTokens

Implementation

Future<List<FactDateSchemaQuery>> findFactSchemas(String queryText) async {
  await isLoaded;
  if (queryText.isNotEmpty != true) return [];
  return (await attributeSchemas.values
          .whereNotRestricted()
          .search(queryText, isMatchAll: true))
      .toList();
}