ExpandableListTileButton.custom constructor

ExpandableListTileButton.custom({
  1. Key? key,
  2. required Widget expanded,
  3. required Widget customHeaderBuilder(
    1. dynamic tapAction(),
    2. bool isExpanded,
    3. bool isDisabled,
    4. double animValue,
    ),
  4. Color? headerBackgroundColor,
  5. Color? expandedBodyColor,
  6. Color? backgroundColor,
  7. Color? expandedColor,
  8. Color? borderColor,
  9. Color? shadowColor,
  10. double elevation = 1,
  11. EdgeInsetsGeometry? margin,
  12. double expandedBottomMargin = 16.0,
  13. EdgeInsetsGeometry? headerPadding,
  14. EdgeInsetsGeometry? headerBodyPadding,
  15. EdgeInsetsGeometry? leadingPadding,
  16. EdgeInsetsGeometry? trailingPadding,
  17. double? headerWidth,
  18. double? headerHeight,
  19. double? headerMinWidth,
  20. double? headerMaxWidth,
  21. double? headerMinHeight,
  22. double? headerMaxHeight,
  23. Alignment headerContentAlignment = Alignment.centerLeft,
  24. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(10)),
  25. bool disabled = false,
  26. bool headerDisabled = false,
  27. AlignmentGeometry bodyAlignment = Alignment.topCenter,
  28. ExpandableController? controller,
  29. Duration animationDuration = const Duration(milliseconds: 300),
  30. Curve animationCurve = Curves.easeInOutCubic,
  31. bool enableHaptics = true,
  32. MouseCursor mouseCursor = SystemMouseCursors.click,
  33. String? semanticsLabel,
  34. 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,
  );
}