TemplateCatalogQuery class

Value object that encapsulates all filtering, search, and sorting parameters for a TemplateCatalog query.

All fields are optional; an empty query returns all catalog entries in the default sort order (TemplateCatalogSortOrder.nameAscending).

Constructors

TemplateCatalogQuery({String? searchText, String? projectType, String? category, String? maturity, List<String> requiredTags = const [], List<String> anyTags = const [], String? versionConstraint, String? providerKey, TemplateCatalogSortOrder sortOrder = TemplateCatalogSortOrder.nameAscending, int? limit})
Creates a TemplateCatalogQuery instance.
const

Properties

anyTags → List<String>
Filter entries that contain AT LEAST ONE of the specified tags.
final
category → String?
Filter by category (builtin, community, local).
final
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Returns true when no filtering criteria are specified (matches all).
no setter
limit → int?
Maximum number of entries to return (null = no limit).
final
maturity → String?
Filter by required maturity level (e.g. stable, preview).
final
projectType → String?
Filter by project archetype (e.g. flutter_package, dart_package).
final
providerKey → String?
Filter by specific provider key.
final
requiredTags → List<String>
Filter entries that contain ALL of the specified tags.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchText → String?
Free-text search string matched against ID, name, description, and tags.
final
sortOrder → TemplateCatalogSortOrder
Sort order to apply to the result set.
final
versionConstraint → String?
Filter entries whose version satisfies this constraint (e.g. ^1.0.0).
final

Methods

copyWith({String? searchText, String? projectType, String? category, String? maturity, List<String>? requiredTags, List<String>? anyTags, String? versionConstraint, String? providerKey, TemplateCatalogSortOrder? sortOrder, int? limit}) → TemplateCatalogQuery
Creates a copy of this query with overrides applied.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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