getPlugins method

List<Plugin> getPlugins(
  1. PluginType? ofType
)

Implementation

List<Plugin> getPlugins(PluginType? ofType) {
  if (ofType != null) {
    return [...(_plugins[ofType] ?? [])];
  }
  return ([
    ...getPlugins(PluginType.before),
    ...getPlugins(PluginType.enrichment),
    ...getPlugins(PluginType.utility),
    ...getPlugins(PluginType.destination),
    ...getPlugins(PluginType.after),
  ]);
}