DiagonalLayoutStrategy class
对角线布局策略 沿对角线方向填充
- Implemented types
Constructors
- DiagonalLayoutStrategy({bool reverseDirection = false})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
策略名称
no setteroverride
- reverseDirection → bool
-
是否从右上到左下(默认从左上到右下)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generatePositions(
{required int columns, required int rows, required HexOrientation orientation, int? count}) → List< HexCoordinate> -
根据策略生成坐标序列
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited