ComponentConfig constructor

const ComponentConfig({
  1. ComponentType? type,
  2. Widget builder(
    1. BuildContext context
    )?,
  3. bool isFloating = false,
  4. bool hasAnimation = false,
  5. bool isCollapsible = false,
  6. bool initiallyExpanded = true,
  7. Color? backgroundColor,
  8. Duration animationDuration = const Duration(milliseconds: 300),
  9. AnimationType? animationType,
  10. double? width,
  11. double? height,
  12. EdgeInsets? margin,
  13. EdgeInsets? padding,
  14. Map<String, dynamic>? customProps,
  15. bool showToggleButton = false,
  16. bool isShow = true,
})

Implementation

const ComponentConfig({
  this.type,
  this.builder,
  this.isFloating = false,
  this.hasAnimation = false,
  this.isCollapsible = false,
  this.initiallyExpanded = true,
  this.backgroundColor,
  this.animationDuration = const Duration(milliseconds: 300),
  this.animationType,
  this.width,
  this.height,
  this.margin,
  this.padding,
  this.customProps,
  this.showToggleButton = false, // 默认显示切换按钮
  this.isShow = true, // 默认显示组件
});