CategoryController class

A controller that manages categories by interacting with the CategoryService.

Constructors

CategoryController.new({required CategoryService categoryService})
Creates a CategoryController with the given CategoryService.

Properties

categories List<CategoryModel>
Gets the current list of categories.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAllCategories() Future<void>
Fetches all categories from the CategoryService.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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