ZeroExpansionTileStyle.filled constructor

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

Implementation

factory ZeroExpansionTileStyle.filled(
    {Widget? leading,
    Widget? trailing,

    /// Background color of the title when expanded
    Color? titleColor,

    /// Background olor of the children when expanded
    Color? childrenBackgroundColor,

    /// Background color of the title when collapsed
    Color? collapsedTitleColor,
    Color? iconColor,
    Color? collapsedIconColor,
    Color? textColor,
    Color? collapsedTextColor,
    ShapeBorder? shape,
    ShapeBorder? collapsedShape,
    EdgeInsetsGeometry? childrenPadding}) {
  return ZeroExpansionTileStyle(
      variant: AccordionVariant.filled,
      leading: leading,
      trailing: trailing,
      titleColor: titleColor,
      backgroundColor: titleColor,
      childrenBackgroundColor: childrenBackgroundColor,
      collapsedBackgroundColor: collapsedTitleColor,
      iconColor: iconColor,
      collapsedIconColor: collapsedIconColor,
      textColor: textColor,
      collapsedTextColor: collapsedTextColor,
      shape: shape ??
          Border.all(
            color: ZeroColors.transparent,
            width: 0,
          ),
      collapsedShape: collapsedShape ??
          Border.all(
            color: ZeroColors.transparent,
            width: 0,
          ),
      childrenPadding: childrenPadding);
}