SpinnerEntity class
弹框显示配置
[title] 标题
[desc] 描述
[isRadio] 是否单选
[extraData] 额外数据
[titleRichText] 富文本标题外部自定义
[titleSuffix] 标题后面的额外图片(本地图片)
[type] 每组内容的显示风格,通过网络数据 fromJson 可以定义成 int 类型
Constructors
-
SpinnerEntity({required String key, bool isRadio = true, bool isShowButtons = false, String title = '', MoreContentType type = MoreContentType.wrap, String desc = '', RichText? titleRichText, dynamic extraData, List<
SpinnerItemData> items = const []}) -
const
-
SpinnerEntity.fromJson(Map<
String, dynamic> json) -
factory
Properties
- desc → String
-
问号描述,点击显示内容。默认为空不显示解释图标
final
- extraData → dynamic
-
额外视图的选择结构(eg: picker,input...)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRadio → bool
-
是否单选
final
- isShowButtons → bool
-
是否显示底部操作按钮,给
单选&单条件弹窗补充使用后续可能会优化final -
items
→ List<
SpinnerItemData> -
标题后面的额外图片(本地图片)
选项集
final
- key → String
-
服务器字段
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
标题,空不显示
final
- titleRichText → RichText?
-
富文本标题外部自定义
final
- type → MoreContentType
-
每组内容的显示风格
final
Methods
-
copyWith(
{String? key, bool? isRadio, bool? isShowButtons, String? title, MoreContentType? type, String? desc, RichText? titleRichText, dynamic extraData, List< SpinnerItemData> ? items}) → SpinnerEntity -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited