WheelOptions class

Implementers

Constructors

WheelOptions({Color? backgroundColor, bool looping = false, double diameterRatio = 1, double offAxisFraction = 0, double perspective = 0.01, double magnification = 1.1, bool useMagnifier = false, double squeeze = 1, bool isCupertino = true, double itemExtent = 22, ScrollPhysics physics = const FixedExtentScrollPhysics(), ValueChanged<int>? onChanged})
const

Properties

backgroundColor Color?
isCupertino=true生效
final
diameterRatio double
半径大小,越大则越平面,越小则间距越大
final
hashCode int
The hash code for this object.
no setterinherited
isCupertino bool
是否使用ios 样式
final
itemExtent double
每个Item的高度,固定的
final
looping bool
final
magnification double
放大倍率
final
offAxisFraction double
选中item偏移
final
onChanged ValueChanged<int>?
回调监听
final
perspective double
表示车轮水平偏离中心的程度 范围0,0.01
final
physics ScrollPhysics
ScrollPhysics
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
squeeze double
上下间距默认为1 数越小 间距越大
final
useMagnifier bool
是否启用放大镜
final

Methods

copyWith({double? itemExtent, double? diameterRatio, double? offAxisFraction, double? perspective, double? magnification, bool? useMagnifier, double? squeeze, bool? isCupertino, ScrollPhysics? physics, bool? looping, ValueChanged<int>? onChanged, Color? backgroundColor}) WheelOptions
merge([WheelOptions? options]) WheelOptions
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