PickerWheelOptions class

Inheritance

Constructors

PickerWheelOptions({double itemExtent = 22, double diameterRatio = 1.3, double offAxisFraction = 0, double perspective = 0.01, bool useMagnifier = true, double magnification = 1.1, double squeeze = 1, Clip clipBehavior = Clip.hardEdge, double overAndUnderCenterOpacity = 0.447, bool renderChildrenOutsideViewport = false, String? restorationId, ScrollBehavior? scrollBehavior, bool isCupertino = true, Color? backgroundColor, Widget? selectionOverlay = const CupertinoPickerDefaultSelectionOverlay(), ScrollPhysics? physics, double? itemWidth})
const

Properties

backgroundColor Color?
isCupertino=true生效
finalinherited
clipBehavior Clip
isCupertino=false生效
finalinherited
diameterRatio double
半径大小,越大则越平面,越小则间距越大
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isCupertino bool
是否使用ios 样式
finalinherited
itemExtent double
wheel子item高度
finalinherited
itemWidth double?
不设置 itemWidth 默认均分
final
magnification double
放大倍率
finalinherited
offAxisFraction double
选中item偏移
finalinherited
onChanged ValueChanged<int>?
回调监听
finalinherited
overAndUnderCenterOpacity double
isCupertino=false生效
finalinherited
perspective double
表示车轮水平偏离中心的程度 范围0,0.01 isCupertino=false生效
finalinherited
physics ScrollPhysics?
ScrollPhysics
finalinherited
renderChildrenOutsideViewport bool
isCupertino=false生效
finalinherited
restorationId String?
isCupertino=false生效
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehavior ScrollBehavior?
isCupertino=false生效
finalinherited
selectionOverlay Widget?
isCupertino=true生效
finalinherited
squeeze double
上下间距默认为1 数越小 间距越大
finalinherited
useMagnifier bool
是否启用放大镜
finalinherited

Methods

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