AntdCollapseItem class

折叠面板中的单个可折叠项 @l AntdCollapse

Constructors

AntdCollapseItem.new({bool disabled = false, Widget? title, Widget? content, Widget? icon, Widget? activeIcon, Widget? disableIcon, VoidCallback? onTap, Widget builder(AntdCollapseItem item, Widget child)?})
const

Properties

activeIcon Widget?
展开状态下的自定义图标
final
builder Widget Function(AntdCollapseItem item, Widget child)?
自定义项渲染构建器(参数:当前项实例/基础子组件)
final
content Widget?
折叠项展开时显示的内容
final
disabled bool
是否禁用当前折叠项
final
disableIcon Widget?
禁用状态下的自定义图标
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
自定义折叠图标
final
onTap VoidCallback?
点击折叠项的回调函数
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title Widget?
折叠项的标题内容
final

Methods

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