ComponentConfig constructor

const ComponentConfig({
  1. ComponentType? type,
  2. Widget builder(
    1. BuildContext context
    )?,
  3. bool? isFloating,
  4. bool? isDraggable,
  5. bool? dragSnapToEdge,
  6. bool? hasAnimation,
  7. bool? isCollapsible,
  8. bool? initiallyExpanded,
  9. Color? backgroundColor,
  10. Duration? animationDuration,
  11. AnimationType? animationType,
  12. double? width,
  13. double? height,
  14. double? top,
  15. double? left,
  16. double? bottom,
  17. double? right,
  18. EdgeInsets? margin,
  19. EdgeInsets? padding,
  20. Map<String, dynamic>? customProps,
  21. bool? showToggleButton,
  22. bool? isShow,
})

Implementation

const ComponentConfig({
  this.type,
  this.builder,
  bool? isFloating,
  bool? isDraggable,
  bool? dragSnapToEdge,
  bool? hasAnimation,
  bool? isCollapsible,
  bool? initiallyExpanded,
  this.backgroundColor,
  Duration? animationDuration,
  this.animationType,
  this.width,
  this.height,
  this.top,
  this.left,
  this.bottom,
  this.right,
  this.margin,
  this.padding,
  this.customProps,
  bool? showToggleButton,
  bool? isShow,
}) : isFloating = isFloating ?? false,
     isDraggable = isDraggable ?? false,
     dragSnapToEdge = dragSnapToEdge ?? false,
     hasAnimation = hasAnimation ?? false,
     isCollapsible = isCollapsible ?? false,
     initiallyExpanded = initiallyExpanded ?? true,
     animationDuration =
         animationDuration ?? const Duration(milliseconds: 300),
     showToggleButton = showToggleButton ?? false,
     isShow = isShow ?? true,
     _isFloatingSpecified = isFloating != null,
     _isDraggableSpecified = isDraggable != null,
     _dragSnapToEdgeSpecified = dragSnapToEdge != null,
     _hasAnimationSpecified = hasAnimation != null,
     _isCollapsibleSpecified = isCollapsible != null,
     _initiallyExpandedSpecified = initiallyExpanded != null,
     _animationDurationSpecified = animationDuration != null,
     _showToggleButtonSpecified = showToggleButton != null,
     _isShowSpecified = isShow != null;