ComponentRepository class abstract
Repository interface for component template operations
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
String id) → Future< Either< String, void> > - Delete component
-
getAll(
{int offset = 0, int limit = 20}) → Future< Either< String, List< >ComponentTemplate> > - Get all components (paginated)
-
getById(
String id) → Future< Either< String, ComponentTemplate> > - Get single component by ID
-
getByType(
ComponentType type, {int offset = 0, int limit = 20}) → Future< Either< String, List< >ComponentTemplate> > - Get components by type (paginated)
-
getFavorites(
) → Future< Either< String, List< >ComponentTemplate> > - Get favorite components
-
hasSeedData(
) → Future< bool> - Check if seed data exists
-
loadSeedData(
) → Future< Either< String, void> > - Load seed data (standard components)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
ComponentTemplate component) → Future< Either< String, void> > - Save/update component
-
search(
String query, {int offset = 0, int limit = 20}) → Future< Either< String, List< >ComponentTemplate> > - Search components by name (paginated)
-
toggleFavorite(
String id) → Future< Either< String, void> > - Toggle favorite status
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited