SliverConstraintsUtil extension
Extension on SliverConstraints that provides various utilities.
Properties
- growsForward → bool
-
Available on SliverConstraints, provided by the SliverConstraintsUtil extension
Whether or not growth happens on the forward direction of axis.no setter - growsReverse → bool
-
Available on SliverConstraints, provided by the SliverConstraintsUtil extension
Whether or not growth happens on the reverse direction of axis.no setter
Methods
-
cacheOffset(
double from, double to) → double -
Available on SliverConstraints, provided by the SliverConstraintsUtil extension
Computes the portion of the region fromfrom
toto
that is within the cache extent of the viewport. -
paintOffset(
double from, double to) → double -
Available on SliverConstraints, provided by the SliverConstraintsUtil extension
Computes the portion of the region fromfrom
toto
that is visible. -
unwrap(
double cross, double main, Size size) → SliverOffset -
Available on SliverConstraints, provided by the SliverConstraintsUtil extension
Returns the relative offset given a cross position, main position, and size. -
wrap(
Offset offset, Size size) → SliverOffset -
Available on SliverConstraints, provided by the SliverConstraintsUtil extension
Returns the sliver offset given a regular offset and size.