ComponentConfig constructor
const
ComponentConfig({
- ComponentType? type,
- Widget builder(
- BuildContext context
- bool? isFloating,
- bool? isDraggable,
- bool? dragSnapToEdge,
- bool? hasAnimation,
- bool? isCollapsible,
- bool? initiallyExpanded,
- Color? backgroundColor,
- Duration? animationDuration,
- AnimationType? animationType,
- double? width,
- double? height,
- double? top,
- double? left,
- double? bottom,
- double? right,
- EdgeInsets? margin,
- EdgeInsets? padding,
- Map<
String, dynamic> ? customProps, - bool? showToggleButton,
- 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;