sideOffsetsForBorder method
Authored side-offset slots for construction-time tween interpolation.
Defaults to offsets from the selected border's AnyBorder.resolvedSides. Box and tab builders therefore share top, right, bottom, left slots. Override this when the decoration uses different construction sides or ordering. Slots must have a stable logical order and are supplied to buildPoints for both ordinary construction and animation. An empty list describes a shape with no side-offset slots. Discovery receives raw layout bounds, before adjustment and fitting. Slot count/order must remain stable for a shape configuration across layouts.
Implementation
@protected
List<double> sideOffsetsForBorder(
Rect bounds,
TextDirection? textDirection,
AnyBorder border,
) =>
border.resolvedSides.map((side) => side.offset).toList(growable: false);