register method

FutureOr<void> register(
  1. TPlugin plugin
)

Register a plugin to the manager.

Implementation

FutureOr<void> register(TPlugin plugin) {
  plugins.add(plugin);
  return plugin.initialize();
}