render method

void render(
  1. Canvas canvas
)

Implementation

void render(Canvas canvas) {
  if (position == null) return;
  if (_fastAnimation != null) {
    _fastAnimation?.render(canvas);
  } else {
    _current?.getSprite().renderFromVector2Rect(
          canvas,
          position!,
          opacity: opacity,
        );
  }
}