SliverConstraintsUtil extension

Extension on SliverConstraints that provides various utilities.

on

Properties

growsForward bool
Whether or not growth happens on the forward direction of axis.
no setter
growsReverse bool
Whether or not growth happens on the reverse direction of axis.
no setter

Methods

cacheOffset(double from, double to) double
Computes the portion of the region from from to to that is within the cache extent of the viewport.
paintOffset(double from, double to) double
Computes the portion of the region from from to to that is visible.
unwrap(double cross, double main, Size size) SliverOffset
Returns the relative offset given a cross position, main position, and size.
wrap(Offset offset, Size size) SliverOffset
Returns the sliver offset given a regular offset and size.