ECFormSwitchWidgetVM<Input> class
- Mixed-in types
-
- ECFormBaseWidgetVM
- ListViewItemType
Constructors
- ECFormSwitchWidgetVM({String? title, double? titleFont, String? subTitle, bool ecRequired = false, required String paramKey, dynamic changeCall(bool)?, ECFormOutCall? checkCall, String? errorString, bool enable = true, bool open = true, dynamic openValue = true, dynamic closeValue = false, String? value, EdgeInsets? padding, bool? showRedPoint})
Properties
- bottomRadiu ↔ double?
-
getter/setter pairinherited
- changeCall → dynamic Function(bool)?
-
switch切换的回调
final
-
changeStream
↔ BehaviorSubject<
bool> -
switch切换的订阅
getter/setter pair
- checkCall ↔ ECFormOutCall?
-
校验函数
如果是可选,可以不用
getter/setter pairinherited
- closeValue → dynamic
-
如果关闭传入后台的值:影响 itemParam
final
- ecRequired ↔ bool
-
是否必须传
getter/setter pairinherited
- enable ↔ bool
-
是否可编辑
getter/setter pairinherited
- errorHeight ↔ double
-
错误提示高度
getter/setter pairinherited
- errorString ↔ String?
-
错误提示(在输入框/表单下方)
如果是可选择没有
getter/setter pairinherited
-
errStream
↔ BehaviorSubject<
bool> -
错误stream
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSeparated → bool
-
是否有separated
no setterinherited
- height ↔ double?
-
表单高度
getter/setter pairinherited
- isTapEnable ↔ bool
-
是否可以点击
默认cell是可以点击的
getter/setter pairinherited
-
itemParam
→ Map<
String, dynamic> -
提供一个子类可以定义的param
no setteroverride
- maxLength ↔ int
-
最大输入长度
getter/setter pairinherited
- onChange ↔ dynamic Function(dynamic)?
-
输入框文字变化
getter/setter pairinherited
- open ↔ bool
-
默认是否打开
getter/setter pair
- openValue → dynamic
-
如果打开最终传入后台的值:影响 itemParam
final
- padding ↔ EdgeInsets?
-
边距
getter/setter pairinherited
- paramKey ↔ String
-
入参
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sectionItem
↔ WeakReference<
ListViewSectionItemType< ?ListViewItemType> > -
item会对section进行弱引用
getter/setter pairinherited
- separated ↔ double?
-
直接设置separated高度,内部采用SizeBox实现
即使sectionType设置了该属性,此优先级更高
getter/setter pairinherited
- separatedBuilder ↔ Widget Function()?
-
如果这个方法不为null,则优先使用separatedBuilder,而废弃separated属性
即使sectionType设置了该属性,此优先级更高
不建议使用该方法
getter/setter pairinherited
- showItem ↔ bool
-
是否展示这个item
getter/setter pairinherited
- showRedPoint ↔ bool?
-
是否显示红色*
如果是ecRequired,则默认会显示红点,
但是如果有传showRedPoint,则优先取该字段
getter/setter pairinherited
- subTitle → String?
-
子标题
final
- title ↔ String?
-
表单标题
getter/setter pairinherited
- titleFont ↔ double?
-
getter/setter pairinherited
- topRadiu ↔ double?
-
用于制作圆角
getter/setter pairinherited
- updateItemCell ↔ dynamic Function()
-
局部更新itemCell
getter/setter pairinherited
- value ↔ Object?
-
value
getter/setter pairinherited
-
valueStream
↔ BehaviorSubject<
Object> -
getter/setter pairinherited
- visibilityRedPoint → bool
-
是否需要显示红色*
no setterinherited
-
weakPageViewModel
↔ WeakReference<
Object> ? -
item会对页面的控制器进行弱引用(如果有传则会)
getter/setter pairinherited
Methods
-
cellBuilder(
) → ListViewCellType< ListViewItemType> -
cell的构建方法,混入必须实现
override
-
check(
) → bool -
检查校验
override
-
disponse(
) → dynamic -
销毁坚挺,内部已经处理
外部需要可以重写这个方法,但是必须执行supper.dispose()
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestCall(
) → dynamic -
处理数据回选择
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited