padding property

  1. @protected
  2. @override
EdgeInsets get padding

Getter for padding of drawable.

Add padding equal to the stroke width of the line.

Implementation

@protected
@override
EdgeInsets get padding => EdgeInsets.all(paint.strokeWidth / 2);