area property

double get area

Area of the ring

Implementation

double get area => pi * (outerRadius * outerRadius - innerRadius * innerRadius);