underline method
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,
);
}