addPlugin abstract method

Future<void> addPlugin(
  1. AmplifyPluginInterface plugin
)

Adds one plugin at a time. Note: this method can only be called before Amplify has been configured. Customers are expected to check the configuration state by calling Amplify.isConfigured

Throws AmplifyAlreadyConfiguredException if this method is called after configure (e.g. during hot reload).

Implementation

Future<void> addPlugin(AmplifyPluginInterface plugin);