AntdTabBarItem class
TabBar 单个选项卡项的定义 @l AntdTabBar
Constructors
- AntdTabBarItem.new({Widget? icon, Widget? title, Widget? activeIcon, Widget builder(Widget child, int index, bool active)?, VoidCallback? onActive})
-
const
Properties
- activeIcon → Widget?
-
激活状态下显示的图标(未设置时回退使用icon)
final
- builder → Widget Function(Widget child, int index, bool active)?
-
自定义内容构建器(参数:child-基础内容, index-选项卡索引, active-是否激活)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
默认状态下显示的图标
final
- onActive → VoidCallback?
-
被激活时的回调
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → Widget?
-
选项卡标题(支持任意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