ExpandableListTileButton.custom constructor
ExpandableListTileButton.custom({
- Key? key,
- required Widget expanded,
- required Widget customHeaderBuilder(),
- Color? headerBackgroundColor,
- Color? expandedBodyColor,
- Color? backgroundColor,
- Color? expandedColor,
- Color? borderColor,
- Color? shadowColor,
- double elevation = 1,
- EdgeInsetsGeometry? margin,
- double expandedBottomMargin = 16.0,
- EdgeInsetsGeometry? headerPadding,
- EdgeInsetsGeometry? headerBodyPadding,
- EdgeInsetsGeometry? leadingPadding,
- EdgeInsetsGeometry? trailingPadding,
- double? headerWidth,
- double? headerHeight,
- double? headerMinWidth,
- double? headerMaxWidth,
- double? headerMinHeight,
- double? headerMaxHeight,
- Alignment headerContentAlignment = Alignment.centerLeft,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(10)),
- bool disabled = false,
- bool headerDisabled = false,
- AlignmentGeometry bodyAlignment = Alignment.topCenter,
- ExpandableController? controller,
- Duration animationDuration = const Duration(milliseconds: 300),
- Curve animationCurve = Curves.easeInOutCubic,
- bool enableHaptics = true,
- MouseCursor mouseCursor = SystemMouseCursors.click,
- String? semanticsLabel,
- bool continuous = true,
Implementation
factory ExpandableListTileButton.custom({
Key? key,
required Widget expanded,
required Widget Function(
Function() tapAction,
bool isExpanded,
bool isDisabled,
double animValue,
)
customHeaderBuilder,
Color? headerBackgroundColor,
Color? expandedBodyColor,
Color? backgroundColor,
Color? expandedColor,
Color? borderColor,
Color? shadowColor,
double elevation = 1,
EdgeInsetsGeometry? margin,
double expandedBottomMargin = 16.0,
EdgeInsetsGeometry? headerPadding,
EdgeInsetsGeometry? headerBodyPadding,
EdgeInsetsGeometry? leadingPadding,
EdgeInsetsGeometry? trailingPadding,
double? headerWidth,
double? headerHeight,
double? headerMinWidth,
double? headerMaxWidth,
double? headerMinHeight,
double? headerMaxHeight,
Alignment headerContentAlignment = Alignment.centerLeft,
BorderRadius borderRadius = const BorderRadius.all(Radius.circular(10)),
bool disabled = false,
bool headerDisabled = false,
AlignmentGeometry bodyAlignment = Alignment.topCenter,
ExpandableController? controller,
Duration animationDuration = const Duration(milliseconds: 300),
Curve animationCurve = Curves.easeInOutCubic,
bool enableHaptics = true,
MouseCursor mouseCursor = SystemMouseCursors.click,
String? semanticsLabel,
bool continuous = true,
}) {
return ExpandableListTileButton(
key: key,
expanded: expanded,
customHeaderBuilder: customHeaderBuilder,
headerBackgroundColor: headerBackgroundColor,
backgroundColor: backgroundColor,
expandedBodyColor: expandedBodyColor,
expandedColor: expandedColor,
borderColor: borderColor,
shadowColor: shadowColor,
elevation: elevation,
margin: margin,
expandedBottomMargin: expandedBottomMargin,
headerPadding: headerPadding,
headerBodyPadding: headerBodyPadding,
leadingPadding: leadingPadding,
trailingPadding: trailingPadding,
headerWidth: headerWidth,
headerHeight: headerHeight,
headerMinWidth: headerMinWidth,
headerMaxWidth: headerMaxWidth,
headerMinHeight: headerMinHeight,
headerMaxHeight: headerMaxHeight,
headerContentAlignment: headerContentAlignment,
borderRadius: borderRadius,
disabled: disabled,
headerDisabled: headerDisabled,
bodyAlignment: bodyAlignment,
controller: controller,
animationDuration: animationDuration,
animationCurve: animationCurve,
enableHaptics: enableHaptics,
mouseCursor: mouseCursor,
semanticsLabel: semanticsLabel,
continuous: continuous,
);
}