BloomRepository class abstract

Base repository pattern class for encapsulating API communication.

Automatically acquires or injects a configured BloomHttpClient from the dependency container.

Example:

class UserRepository extends BloomRepository {
  Future<List<User>> getUsers() => http.get<List<User>>('/users');
}

Constructors

BloomRepository([BloomHttpClient? client, BloomContainer? container])
Creates a BloomRepository with an optional client or resolving one from container.

Properties

hashCode → int
The hash code for this object.
no setterinherited
http ↔ BloomHttpClient
The BloomHttpClient instance used by this repository.
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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