canvasSize property

Vector2? canvasSize
getter/setter pair

This returns the real widget size (well actually the logical Flutter size of your widget). This is the raw canvas size as it would be without any viewport.

You probably don't need to care about this if you are using a viewport.

Implementation

Vector2? canvasSize;