LayoutConfig class
布局配置类
Constructors
-
LayoutConfig({required LayoutMode mode, required Map<
LayoutPosition, ComponentConfig?> components, Color? backgroundColor, bool showDebugBounds = false, bool accordionMode = true, bool enableFloatingAutoHide = true, Duration floatingAutoHideDelay = const Duration(seconds: 5)}) -
const
-
LayoutConfig.fromJson(Map<
String, dynamic> json) -
从 JSON 创建 LayoutConfig 实例
factory
Properties
- accordionMode → bool
-
final
- backgroundColor → Color?
-
final
-
collapsiblePositions
→ List<
LayoutPosition> -
获取所有可折叠组件
no setter
-
components
→ Map<
LayoutPosition, ComponentConfig?> -
final
- enableFloatingAutoHide → bool
-
新增:浮动组件自动隐藏功能
final
- floatingAutoHideDelay → Duration
-
新增:浮动组件自动隐藏延迟时间
final
-
floatingPositions
→ List<
LayoutPosition> -
获取所有浮动组件
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mode → LayoutMode
-
final
-
nonFloatingPositions
→ List<
LayoutPosition> -
获取所有非浮动组件
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDebugBounds → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - 转换为 JSON
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited