RestrictedAmountPositions class

Defines coordinates of common items and an information item as RestrictedAmountPositions and has maxAmountItems which means only maxAmountItems items will be shown maximum.

Inheritance
Available extensions

Constructors

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

Properties

align → StackAlign
Alignment
finalinherited
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.
finalinherited
laying ↔ StackLaying
The way to tile items.
getter/setter pairinherited
layoutDirection → LayoutDirection
finalinherited
maxAmountItems → int
The maximum amount of items to show
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
finalinherited
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
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculate() → List<ItemPosition>
Calculate item positions
inherited
copyWith({double? maxCoverage, double? minCoverage, StackAlign? align, InfoItem? infoItem, StackLaying? laying, LayoutDirection? layoutDirection}) → RestrictedAmountPositions

Available on RestrictedAmountPositions, provided by the RestrictedAmountPositionsCopyWith extension

copyWith({double? maxCoverage, double? minCoverage, StackAlign? align, InfoItem? infoItem, StackLaying? laying, LayoutDirection? layoutDirection}) → RestrictedPositions

Available on RestrictedPositions, provided by the RestrictedPositionsCopyWith extension

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

Operators

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