RingLayoutStrategy class
环形布局策略 从中心开始,按螺旋形向外扩展
- Implemented types
Constructors
- RingLayoutStrategy({HexCoordinate? startPosition})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
策略名称
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startPosition → HexCoordinate?
-
起始坐标(默认为网格中心)
final
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