AmplifyPluginRegistry class

A registry for AmplifyPluginConfig types. Used for serializing and deserializing plugin configurations.

Unknown plugins are deserialized as an opaque map of type UnknownPluginConfig.

Use AmplifyPluginRegistry.shared to access the global registry.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(String name, Map<String, Object?> json) AmplifyPluginConfig
Builds a plugin from the given name and json. If name is registered, this will build a plugin using the registered factory. Otherwise, an UnknownPluginConfig instance is returned.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register<T extends AmplifyPluginConfig>(AmplifyPluginConfigFactory<T> pluginFactory) → void
Registers a factory for plugin type T.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

shared AmplifyPluginRegistry
The global, shared plugin registry.
final

Static Methods

pluginConfigsFromJson(Object? json) Map<String, AmplifyPluginConfig>
Deserializes plugins from a json Map.