underline method

ZeroExpansionTileStyle underline({
  1. Widget? leading,
  2. Widget? trailing,
  3. Color? backgroundColor,
  4. Color? textColor,
  5. Color? collapsedTextColor,
  6. Color? lineColor,
  7. Color? collapsedLineColor,
  8. EdgeInsetsGeometry? childrenPadding,
})

Implementation

ZeroExpansionTileStyle underline(
    {Widget? leading,
    Widget? trailing,
    Color? backgroundColor,
    Color? textColor,
    Color? collapsedTextColor,
    Color? lineColor,
    Color? collapsedLineColor,
    EdgeInsetsGeometry? childrenPadding}) {
  return copyWith(
    variant: AccordionVariant.underline,
    leading: leading,
    trailing: trailing,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    childrenBackgroundColor: backgroundColor ?? this.backgroundColor,
    collapsedBackgroundColor:
        collapsedBackgroundColor ?? this.backgroundColor,
    textColor: textColor ?? this.textColor,
    collapsedTextColor: collapsedTextColor ?? this.collapsedTextColor,
    shape: lineColor != null
        ? Border(
            top: const BorderSide(color: ZeroColors.transparent),
            bottom: BorderSide(color: lineColor),
          )
        : shape,
    collapsedShape: collapsedLineColor != null
        ? Border(
            top: const BorderSide(color: ZeroColors.transparent),
            bottom: BorderSide(color: collapsedLineColor),
          )
        : collapsedShape,
  );
}