WheelPrizePaintContext class final

自定义奖品内容的只读几何参数。

Annotations

Constructors

WheelPrizePaintContext({required int index, required double sweepRad, required double prizeRadius, required double prizeHeight, required double shortSide})
创建上下文;角宽为弧度,其余长度为逻辑像素。
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
奖品下标。
final
prizeHeight → double
外缘到最大按钮边缘的高度。
final
prizeRadius → double
奖品区半径。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortSide → double
扇区外缘弦长。
final
sweepRad → 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