getPluginsWithReset function

List<Resetable> getPluginsWithReset(
  1. Timeline timeline
)

Implementation

List<Resetable> getPluginsWithReset(Timeline timeline) {
  List<Resetable> flushablePlugins = [];
  timeline._plugins.forEach((key, plugins) {
    for (var plugin in plugins) {
      if (plugin is Resetable) {
        flushablePlugins.add(plugin as Resetable);
      }
    }
  });

  return flushablePlugins;
}