DashOffset.percentage constructor

DashOffset.percentage(
  1. double percentage
)

Create a DashOffset that will be measured as a percentage of the length of the segment being dashed.

percentage will be clamped between 0.0 and 1.0.

Implementation

DashOffset.percentage(double percentage)
    : _rawVal = percentage.clamp(0.0, 1.0),
      _dashOffsetType = _DashOffsetType.Percentage;