padding property

  1. @protected
  2. @override
EdgeInsets get padding

Getter for padding of drawable.

Add padding equal to the stroke width of the line and the size of the arrow head.

Implementation

@protected
@override
EdgeInsets get padding => EdgeInsets.symmetric(
    horizontal: paint.strokeWidth / 2,
    vertical: paint.strokeWidth / 2 + (_arrowHeadSize / 2));