ClassLayoutController class
可配置布局控制器 提供程序化控制组件展开/收起状态的能力
- Inheritance
-
- Object
- ChangeNotifier
- ClassLayoutController
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isBound → bool
-
检查控制器是否已绑定到布局
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
bind(
ConfigurableLayoutState state) → void - 绑定到布局状态
-
collapseAllComponents(
) → void - 收起所有可折叠组件
-
collapseAllFloatingComponents(
) → void - 收起所有浮动组件
-
collapseAllNonFloatingComponents(
) → void - 收起所有非浮动组件
-
collapseComponent(
LayoutPosition position) → void - 收起指定位置的组件
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
expandAllComponents(
) → void - 展开所有可折叠组件
-
expandAllFloatingComponents(
) → void - 展开所有浮动组件
-
expandAllNonFloatingComponents(
) → void - 展开所有非浮动组件
-
expandComponent(
LayoutPosition position) → void - 展开指定位置的组件
-
getAllExpandedStates(
) → Map< LayoutPosition, bool> - 获取所有组件的展开状态
-
getCollapsibleComponentPositions(
) → List< LayoutPosition> - 获取所有可折叠组件的位置
-
getComponentStats(
) → ComponentStateStats - 获取指定类型组件的展开状态统计
-
handleFloatingComponentInteraction(
LayoutPosition position) → void - 处理浮动组件交互(重置自动隐藏定时器)
-
isAnimating(
LayoutPosition position) → bool - 获取指定位置组件是否正在动画中
-
isExpanded(
LayoutPosition position) → bool - 获取指定位置组件的展开状态
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
pauseAllFloatingAutoHide(
) → void - 暂停所有浮动组件的自动隐藏
-
pauseFloatingAutoHide(
LayoutPosition position) → void - 暂停指定浮动组件的自动隐藏
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
resetAllComponents(
) → void - 重置所有组件到初始状态
-
resumeAllFloatingAutoHide(
) → void - 恢复所有浮动组件的自动隐藏
-
resumeFloatingAutoHide(
LayoutPosition position) → void - 恢复指定浮动组件的自动隐藏
-
toggleComponent(
LayoutPosition position, {bool? forceState}) → void -
切换指定位置组件的展开状态
position组件位置forceState强制设置状态,null表示切换当前状态 -
toggleMultipleComponents(
List< LayoutPosition> positions, {bool? forceExpand}) → void -
批量切换多个组件的展开状态
positions要操作的组件位置列表forceExpandtrue=全部展开, false=全部收起, null=切换状态 -
toString(
) → String -
A string representation of this object.
inherited
-
unbind(
) → void - 解绑布局状态
-
waitForAnimationsComplete(
) → Future< void> - 等待所有动画完成
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited