getPluginsWithFlush function

List<Flushable> getPluginsWithFlush(
  1. Timeline timeline
)

Implementation

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

  return flushablePlugins;
}