areaForRectangle method

  1. @protected
num areaForRectangle(
  1. Rectangle<num> rect
)
inherited

Gets the area of a Rectangle.

Implementation

@protected
num areaForRectangle(Rectangle rect) => rect.height * rect.width;