ProviderRegistry class
Properties
-
entries
→ Map<
String, ProviderRegistration> -
Provides direct access to the internal map of entries.
no setterinherited
-
entryNames
→ Iterable<
String> -
An iterable of all entry names in the registry.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
registrations
→ Iterable<
ProviderRegistration> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearEntries(
) → void -
Clears all entries from the registry.
inherited
-
containsEntry(
String name) → bool -
Checks if an entry with the given
nameexists in the registry.inherited -
duplicateDiagnostics(
String name) → String -
Generates diagnostic information for duplicate entries with the given
name.inherited -
entryOrigin(
String name) → StackTrace? -
Retrieves the stack trace of the original registration for the given
name.inherited -
getEntry(
String name) → ProviderRegistration? -
Retrieves the entry associated with the given
name.inherited -
has(
String id) → bool -
normalizeName(
String name) → String -
Normalizes the given
nameby trimming and converting it to lowercase.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDuplicate(
String name, ProviderRegistration existing, bool overrideExisting) → bool -
Handles duplicate entries with the given
nameandexistingvalue.inherited -
register(
String id, {required ServiceProviderFactory factory, String description = ''}) → void -
registerEntry(
String name, ProviderRegistration value, {bool overrideExisting = true}) → bool -
Registers an entry with the given
nameandvalue.inherited -
resolve(
String id) → ProviderRegistration? -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterEntry(
String name) → bool -
Unregisters the entry with the given
name.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → ProviderRegistry
-
final