height method

Canvas height(
  1. int pixels, {
  2. bool? removeIf,
})

The height of the coordinate space in CSS pixels. Read more...

Implementation

Canvas height(int pixels, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('height', pixels.toString());
    node.attrs!.add(attr);
  }
  return this;
}