copyWith method
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,
);
}