CustomComponentConfig constructor

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

Implementation

const CustomComponentConfig({
  required Widget Function(BuildContext context) builder,
  this.top,
  this.left,
  this.bottom,
  this.right,
  bool hasAnimation = false,
  bool isCollapsible = false,
  bool initiallyExpanded = true,
  Duration animationDuration = const Duration(milliseconds: 300),
  AnimationType? animationType,
  double? width,
  double? height,
  EdgeInsets? margin,
  EdgeInsets? padding,
  Map<String, dynamic>? customProps,
  bool showToggleButton = true,
  bool isShow = true,
}) : super(
       type: ComponentType.custom,
       builder: builder,
       isFloating: true,
       hasAnimation: hasAnimation,
       isCollapsible: isCollapsible,
       initiallyExpanded: initiallyExpanded,
       animationDuration: animationDuration,
       animationType: animationType,
       width: width,
       height: height,
       margin: margin,
       padding: padding,
       customProps: customProps,
       showToggleButton: showToggleButton,
       isShow: isShow,
     );