filled method

ZeroExpansionTileStyle filled({
  1. Widget? leading,
  2. Widget? trailing,
  3. Color? titleColor,
  4. Color? collapsedTitleColor,
  5. Color? childrenBackgroundColor,
  6. Color? textColor,
  7. Color? collapsedTextColor,
  8. ShapeBorder? shape,
  9. ShapeBorder? collapsedShape,
})

Implementation

ZeroExpansionTileStyle filled(
    {Widget? leading,
    Widget? trailing,
    Color? titleColor,
    Color? collapsedTitleColor,
    Color? childrenBackgroundColor,
    Color? textColor,
    Color? collapsedTextColor,
    ShapeBorder? shape,
    ShapeBorder? collapsedShape}) {
  return copyWith(
      variant: AccordionVariant.filled,
      leading: leading,
      trailing: trailing,
      backgroundColor: titleColor ?? this.titleColor,
      collapsedBackgroundColor:
          collapsedTitleColor ?? this.collapsedTitleColor,
      childrenBackgroundColor:
          childrenBackgroundColor ?? this.childrenBackgroundColor,
      shape: Border.all(
        color: ZeroColors.transparent,
        width: 0,
      ),
      collapsedShape: Border.all(
        color: ZeroColors.transparent,
        width: 0,
      ));
}