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
-
- Object
- RestrictedPositions
- RestrictedAmountPositions
Constructors
- RestrictedAmountPositions({double maxCoverage = 0.8, double minCoverage = double.negativeInfinity, int maxAmountItems = 5, StackAlign align = StackAlign.left, double infoIndent = 0.0})
Properties
- align → StackAlign
-
Alignment
finalinherited
- 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)
finalinherited
- laying ↔ StackLaying
-
The way to tile items.
getter/setter pairinherited
- 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
-
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 need to place in
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited