add method

Plugin add(
  1. Plugin plugin
)

Adds a new plugin to the currently loaded set.

  • Parameter plugin: The plugin to be added.
  • Returns: Returns the name of the supplied plugin.

Implementation

Plugin add(Plugin plugin) {
  final analytics = this.analytics;
  if (analytics != null) {
    plugin.configure(analytics);
  }
  timeline.add(plugin);
  return plugin;
}