copyWith method

ZeroNavigationDrawerStyle copyWith({
  1. Color? backgroundColor,
  2. TextStyle? headerTitleStyle,
  3. TextStyle? sectionTitleStyle,
  4. double? width,
  5. ShapeBorder? shape,
  6. bool? separatorDrawer,
})

If the caller passes in a value for a parameter, use that value, otherwise use the value from this object.

A new instance of ZeroNavigationDrawerStyle with the same properties as the original instance, except for the properties that are explicitly overridden.

Implementation

ZeroNavigationDrawerStyle copyWith({
  Color? backgroundColor,
  TextStyle? headerTitleStyle,
  TextStyle? sectionTitleStyle,
  double? width,
  ShapeBorder? shape,
  bool? separatorDrawer,
}) {
  return ZeroNavigationDrawerStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    headerTitleStyle: headerTitleStyle ?? this.headerTitleStyle,
    sectionTitleStyle: sectionTitleStyle ?? this.sectionTitleStyle,
    separatorDrawer: separatorDrawer ?? this.separatorDrawer,
    shape: shape ?? this.shape,
    width: width ?? this.width,
  );
}