Inheritance
System.Object
SliverConstraints
public class SliverConstraints : Constraints, IEquatable<SliverConstraints>
Constructors
Declaration
public SliverConstraints(AxisDirection axisDirection, GrowthDirection growthDirection, ScrollDirection userScrollDirection, float scrollOffset, float precedingScrollExtent, float overlap, float remainingPaintExtent, float crossAxisExtent, AxisDirection crossAxisDirection, float viewportMainAxisExtent, float remainingCacheExtent, float cacheOrigin)
Parameters
Type |
Name |
Description |
AxisDirection |
axisDirection |
|
GrowthDirection |
growthDirection |
|
ScrollDirection |
userScrollDirection |
|
System.Single |
scrollOffset |
|
System.Single |
precedingScrollExtent |
|
System.Single |
overlap |
|
System.Single |
remainingPaintExtent |
|
System.Single |
crossAxisExtent |
|
AxisDirection |
crossAxisDirection |
|
System.Single |
viewportMainAxisExtent |
|
System.Single |
remainingCacheExtent |
|
System.Single |
cacheOrigin |
|
Fields
Declaration
public readonly AxisDirection axisDirection
Field Value
Declaration
public readonly float cacheOrigin
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly AxisDirection crossAxisDirection
Field Value
Declaration
public readonly float crossAxisExtent
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly GrowthDirection growthDirection
Field Value
Declaration
public readonly float overlap
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float precedingScrollExtent
Field Value
Type |
Description |
System.Single |
|
remainingCacheExtent
Declaration
public readonly float remainingCacheExtent
Field Value
Type |
Description |
System.Single |
|
remainingPaintExtent
Declaration
public readonly float remainingPaintExtent
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float scrollOffset
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly ScrollDirection userScrollDirection
Field Value
viewportMainAxisExtent
Declaration
public readonly float viewportMainAxisExtent
Field Value
Type |
Description |
System.Single |
|
Properties
Declaration
public Axis axis { get; }
Property Value
Declaration
public override bool isNormalized { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override bool isTight { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public GrowthDirection normalizedGrowthDirection { get; }
Property Value
Methods
Declaration
public BoxConstraints asBoxConstraints(float minExtent = 0F, float maxExtent = InfinityF, float? crossAxisExtent = default(float? ))
Parameters
Type |
Name |
Description |
System.Single |
minExtent |
|
System.Single |
maxExtent |
|
System.Nullable<System.Single> |
crossAxisExtent |
|
Returns
Declaration
public SliverConstraints copyWith(AxisDirection? axisDirection = default(AxisDirection? ), GrowthDirection? growthDirection = default(GrowthDirection? ), ScrollDirection? userScrollDirection = default(ScrollDirection? ), float? scrollOffset = default(float? ), float? precedingScrollExtent = default(float? ), float? overlap = default(float? ), float? remainingPaintExtent = default(float? ), float? crossAxisExtent = default(float? ), AxisDirection? crossAxisDirection = default(AxisDirection? ), float? viewportMainAxisExtent = default(float? ), float? remainingCacheExtent = default(float? ), float? cacheOrigin = default(float? ))
Parameters
Type |
Name |
Description |
System.Nullable<AxisDirection> |
axisDirection |
|
System.Nullable<GrowthDirection> |
growthDirection |
|
System.Nullable<ScrollDirection> |
userScrollDirection |
|
System.Nullable<System.Single> |
scrollOffset |
|
System.Nullable<System.Single> |
precedingScrollExtent |
|
System.Nullable<System.Single> |
overlap |
|
System.Nullable<System.Single> |
remainingPaintExtent |
|
System.Nullable<System.Single> |
crossAxisExtent |
|
System.Nullable<AxisDirection> |
crossAxisDirection |
|
System.Nullable<System.Single> |
viewportMainAxisExtent |
|
System.Nullable<System.Single> |
remainingCacheExtent |
|
System.Nullable<System.Single> |
cacheOrigin |
|
Returns
Declaration
public override bool debugAssertIsValid(bool isAppliedConstraint = false, InformationCollector informationCollector = null)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public bool Equals(SliverConstraints other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Declaration
public static bool operator ==(SliverConstraints left, SliverConstraints right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(SliverConstraints left, SliverConstraints right)
Parameters
Returns
Type |
Description |
System.Boolean |
|