width property Null safety
final
Width of the user view in the canvas
Value range: 0~1920. The default value is 0. If the value is an odd number, rounded down to the nearest even number.
An error occurs if the user view is larger than the canvas.
Implementation
final int width;