update method

void update(
  1. double deltaTime
)

Implementation

void update(double deltaTime) {
  widget._beforeUpdate();

  setState(() {
    //update all effects and provide canvas with updated variables
    for (EEffect eEffect in widget._effects) {
      if (eEffect.updateFromScene) {
        eEffect.update(deltaTime, Size(widget._width, widget._height));
      }
    }
    eSceneCanvas.updateCanvasValues(widget._darkness, widget._effects);
  });

  widget._afterUpdate();
}