EScene constructor

EScene({
  1. required double width,
  2. required double height,
  3. EColorShift? darkness,
  4. List<EEffect>? effects,
  5. dynamic beforeUpdate()?,
  6. dynamic afterUpdate()?,
})

Implementation

EScene({
  required double width,
  required double height,
  EColorShift? darkness,
  List<EEffect>? effects,
  Function()? beforeUpdate,
  Function()? afterUpdate,
}) {
  _width = width;
  _height = height;
  _darkness = darkness!;
  _effects = effects!;
  _beforeUpdate = beforeUpdate!;
  _afterUpdate = afterUpdate!;
}