onPluginLoaded method

void Function() onPluginLoaded(
  1. void callback(
    1. Plugin
    )
)

Registers a callback for each plugin that gets added to the analytics client. @param callback Function to call

Implementation

void Function() onPluginLoaded(void Function(Plugin) callback) =>
    _onPluginLoaded.addListener((plugin) => plugin != null ? callback(plugin) : null);