PickerOptions<T> class
Constructors
-
PickerOptions({Widget? top, Widget? bottom, Widget? title, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 10), EdgeInsetsGeometry? contentPadding, Widget confirm = const BText('confirm'), Widget cancel = const BText('cancel'), Color? backgroundColor, Decoration? decoration, PickerTapConfirmCallback<
T> ? verifyConfirm, PickerTapCancelCallback<T> ? verifyCancel}) -
const
Properties
- backgroundColor → Color?
-
容器属性
整个Picker的背景色
final
- bottom → Widget?
-
title底部内容
final
- cancel → Widget
-
left
final
- confirm → Widget
-
right
final
- contentPadding → EdgeInsetsGeometry?
-
对内容
final
- decoration → Decoration?
-
Decoration
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- padding → EdgeInsetsGeometry
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → Widget?
-
center
final
- top → Widget?
-
title顶部内容
final
-
verifyCancel
→ PickerTapCancelCallback<
T> ? -
点击 cancel 后校验
cancelTap
数据, 返回 false 不关闭弹窗 默认 为 true;final -
verifyConfirm
→ PickerTapConfirmCallback<
T> ? -
点击 confirm 后校验
confirmTap
数据, 返回 false 不关闭弹窗 默认 为 true;final
Methods
-
copyWith(
{Color? backgroundColor, Decoration? decoration, Widget? bottom, Widget? top, EdgeInsetsGeometry? padding, Widget? confirm, Widget? cancel, Widget? title, PickerTapConfirmCallback< T> ? verifyConfirm, PickerTapCancelCallback<T> ? verifyCancel}) → PickerOptions -
merge(
PickerOptions? options) → PickerOptions -
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