SliverValueConstraints<T> class

Inheritance

Constructors

SliverValueConstraints({required T value, required SliverConstraints constraints})

Properties

axis Axis
The axis along which the scrollOffset and remainingPaintExtent are measured.
no setterinherited
axisDirection AxisDirection
The direction in which the scrollOffset and remainingPaintExtent increase.
finalinherited
cacheOrigin double
Where the cache area starts relative to the scrollOffset.
finalinherited
crossAxisDirection AxisDirection
The direction in which children should be placed in the cross axis.
finalinherited
crossAxisExtent double
The number of pixels in the cross-axis.
finalinherited
growthDirection GrowthDirection
The direction in which the contents of slivers are ordered, relative to the axisDirection.
finalinherited
hashCode int
The hash code for this object.
no setteroverride
isNormalized bool
Whether the constraint is expressed in a consistent manner.
no setterinherited
isTight bool
Whether there is exactly one size possible given these constraints.
no setterinherited
normalizedGrowthDirection GrowthDirection
Return what the growthDirection would be if the axisDirection was either AxisDirection.down or AxisDirection.right.
no setterinherited
overlap double
The number of pixels from where the pixels corresponding to the scrollOffset will be painted up to the first pixel that has not yet been painted on by an earlier sliver, in the axisDirection.
finalinherited
precedingScrollExtent double
The scroll distance that has been consumed by all RenderSlivers that came before this RenderSliver.
finalinherited
remainingCacheExtent double
Describes how much content the sliver should provide starting from the cacheOrigin.
finalinherited
remainingPaintExtent double
The number of pixels of content that the sliver should consider providing. (Providing more pixels than this is inefficient.)
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollOffset double
The scroll offset, in this sliver's coordinate system, that corresponds to the earliest visible part of this sliver in the AxisDirection if SliverConstraints.growthDirection is GrowthDirection.forward or in the opposite AxisDirection direction if SliverConstraints.growthDirection is GrowthDirection.reverse.
finalinherited
userScrollDirection ScrollDirection
The direction in which the user is attempting to scroll, relative to the axisDirection and growthDirection.
finalinherited
value → T
final
viewportMainAxisExtent double
The number of pixels the viewport can display in the main axis.
finalinherited

Methods

asBoxConstraints({double minExtent = 0.0, double maxExtent = double.infinity, double? crossAxisExtent}) BoxConstraints
Returns BoxConstraints that reflects the sliver constraints.
inherited
copyWith({AxisDirection? axisDirection, GrowthDirection? growthDirection, ScrollDirection? userScrollDirection, double? scrollOffset, double? precedingScrollExtent, double? overlap, double? remainingPaintExtent, double? crossAxisExtent, AxisDirection? crossAxisDirection, double? viewportMainAxisExtent, double? remainingCacheExtent, double? cacheOrigin}) SliverConstraints
Creates a copy of this object but with the given fields replaced with the new values.
inherited
debugAssertIsValid({bool isAppliedConstraint = false, InformationCollector? informationCollector}) bool
Asserts that the constraints are valid.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override