RepositoryEntry<Key, Value> class

Registers a service under an explicit lookup key.

By default, AppCubit registers each service under its runtime type. Use this wrapper to register an implementation under an interface or another type key.

Constructors

RepositoryEntry({required Key key, required Value value})
Creates a service registration.

Properties

hashCode → int
The hash code for this object.
no setterinherited
key → Key
The type or key used to retrieve value.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → Value
The registered service instance.
final

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