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, double infoIndent = 0.0, StackLaying laying = StackLaying.last, LayoutDirection layoutDirection = LayoutDirection.horizontal})

Properties

align StackAlign
Alignment
final
hashCode int
The hash code for this object.
no setterinherited
infoIndent double
The additional space between an info item (if exists) and other items. Info item usually has information about hidden items. Something like: (+5)
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 need to place in
override
toString() String
A string representation of this object.
inherited

Operators

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