NumberWheelLayout class final

数字转盘不可变几何;全部半径使用逻辑像素。

Inheritance
Annotations

Constructors

NumberWheelLayout({required Size size, required Offset center, required double radius, required double trackRadius, required double pocketRadius, required double labelRadius, required double hubRadius, required double ballSize, required int labelEvery, required int count})
指定盒子、圆心、半径和标签抽稀间隔。
const

Properties

ballSize → double
小球自身半径。
final
center → Offset
圆心,遵循宿主对齐方式。
final
count → int
格子数。
final
hashCode → int
The hash code for this object.
no setterinherited
hubRadius → double
中心按钮半径。
final
isEmpty → bool
无半径或无号码时为空布局。
no setteroverride
labelEvery → int
每隔多少格显示一个标签;刻度仍然全部绘制。
final
labelRadius → double
标签中线半径。
final
paintsWhenEmpty → bool
布局为空时是否仍要绘制装饰(如 blocks 外框);默认不绘制。
no setterinherited
pocketRadius → double
格子环中线半径。
final
radius → double
盘面外半径。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Size
布局盒子逻辑尺寸。
finalinherited
trackRadius → double
小球外轨圆心半径。
final

Methods

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