copyWith method

BetterCollapseTheme copyWith({
  1. Color? backgroundColor,
  2. Color? collapsedBackground,
  3. Color? iconColor,
  4. Color? collapsedIconColor,
  5. Color? splashColor,
})

Implementation

BetterCollapseTheme copyWith({
  Color? backgroundColor,
  Color? collapsedBackground,
  Color? iconColor,
  Color? collapsedIconColor,
  Color? splashColor,
}) {
  return BetterCollapseTheme(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    collapsedBackground: collapsedBackground ?? this.collapsedBackground,
    iconColor: iconColor ?? this.iconColor,
    collapsedIconColor: collapsedIconColor ?? this.collapsedIconColor,
    splashColor: splashColor ?? this.splashColor,
  );
}