Repository class

Repository layer annotation - indicates data access layer components

This annotation is a specialization of @Component for classes that provide data access functionality, typically interacting with databases or external data sources.

Example:

@Repository()
class UserRepository {
  Future<User?> findById(int id) async {
    // Database access logic here
  }

  Future<void> save(User user) async {
    // Save logic here
  }
}
Inheritance

Constructors

Repository([String? value])
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String?
Optional value to specify the component name
finalinherited

Methods

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