copyWith method

ToolbarTheme copyWith(
  1. {Color color,
  2. Color toggleColor,
  3. Color iconColor,
  4. Color disabledIconColor}

Creates a new ToolbarTheme where each property from this object has been merged with the matching property from the other object.


ToolbarTheme copyWith({
  Color color,
  Color toggleColor,
  Color iconColor,
  Color disabledIconColor,
}) {
  return ToolbarTheme._(
    color: color ?? this.color,
    toggleColor: toggleColor ?? this.toggleColor,
    iconColor: iconColor ?? this.iconColor,
    disabledIconColor: disabledIconColor ?? this.disabledIconColor,