addPlugins method

Future<void> addPlugins(
  1. List<AmplifyPluginInterface> plugins
)

Adds multiple plugins at the same 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

Implementation

Future<void> addPlugins(List<AmplifyPluginInterface> plugins) {
  return Future.wait(plugins.map(addPlugin), eagerError: true);
}