ComponentLocalDataSource class

Implemented types

Constructors

ComponentLocalDataSource(Isar isar)

Properties

hashCode int
The hash code for this object.
no setterinherited
isar Isar
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String id) Future<Either<String, void>>
Delete component
override
getAll({int offset = 0, int limit = 20}) Future<Either<String, List<ComponentTemplate>>>
Get all components (paginated)
override
getById(String id) Future<Either<String, ComponentTemplate>>
Get single component by ID
override
getByType(ComponentType type, {int offset = 0, int limit = 20}) Future<Either<String, List<ComponentTemplate>>>
Get components by type (paginated)
override
getFavorites() Future<Either<String, List<ComponentTemplate>>>
Get favorite components
override
hasSeedData() Future<bool>
Check if seed data exists
override
loadSeedData() Future<Either<String, void>>
Load seed data (standard components)
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(ComponentTemplate component) Future<Either<String, void>>
Save/update component
override
Search components by name (paginated)
override
toggleFavorite(String id) Future<Either<String, void>>
Toggle favorite status
override
toString() String
A string representation of this object.
inherited

Operators

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