toCssPercent method

String toCssPercent()

Returns the CSS percentage string representation (e.g. '50%' for offset 0.5).

Implementation

String toCssPercent() => '${(offset * 100).round()}%';