RestrictedPositions class

Defines coordinates of common items and an information item. The height of elements is defined by _height of the area. Has coverage and align settings.

Implemented types
Implementers

Constructors

RestrictedPositions({double maxCoverage = 0.8, double minCoverage = double.negativeInfinity, StackAlign align = StackAlign.left, InfoItem infoItem = const InfoItem.absent(), StackLaying laying = StackLaying.last, LayoutDirection layoutDirection = LayoutDirection.horizontal})

Properties

align StackAlign
Alignment
final
hashCode int
The hash code for this object.
no setterinherited
infoItem InfoItem
Info item usually has information about hidden items. Something like: (+5) Contains the additional space between an info item (if exists) and other items and size of the info item.
final
laying StackLaying
The way to tile items.
getter/setter pair
layoutDirection LayoutDirection
final
maxCoverage double
Define maximum items coverage. If maxCoverage is negative the gape between item exists. It is measured as a percentage, for example: minCoverage = 0.5 means 50% of coverage minCoverage = 0.81 means 81% of coverage
final
minCoverage double
Define minimum items coverage. If minCoverage is negative the gape between item exists. It is measured as a percentage, for example: minCoverage = 0.5 means 50% of coverage minCoverage = 0.81 means 81% of coverage
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculate() List<ItemPosition>
Calculate item positions
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAmountItems(int fullAmountItems) → void
Set full amount of items
override
setSize({required double width, required double height}) → void
Set size of area items are needed to place in
override
toString() String
A string representation of this object.
inherited

Operators

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