CustomComponentConfig constructor
const
CustomComponentConfig({
- required Widget builder(
- BuildContext context
- double? top,
- double? left,
- double? bottom,
- double? 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,
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,
);