setDisplaySize method

  1. @override
void setDisplaySize(
  1. int width,
  2. int height
)
override

Sets the width and the height of the canvas

Implementation

@override
void setDisplaySize(int width, int height) {
  canvas.width = width;
  canvas.height = height;
}