perimeter property

  1. @override
double get perimeter
override

The length of the shape's boundary. For some more complicated shapes this can be computed approximately.

Implementation

@override
double get perimeter => 2 * (width + height);