copyWith method
- Color? backgroundColor,
- Color? scrimColor,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- ShapeBorder? shape,
- ShapeBorder? endShape,
- double? width,
- Clip? clipBehavior,
Creates a copy of this object with the given fields replaced with the new values.
Implementation
DrawerThemeData copyWith({
Color? backgroundColor,
Color? scrimColor,
double? elevation,
Color? shadowColor,
Color? surfaceTintColor,
ShapeBorder? shape,
ShapeBorder? endShape,
double? width,
Clip? clipBehavior,
}) {
return DrawerThemeData(
backgroundColor: backgroundColor ?? this.backgroundColor,
scrimColor: scrimColor ?? this.scrimColor,
elevation: elevation ?? this.elevation,
shadowColor: shadowColor ?? this.shadowColor,
surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
shape: shape ?? this.shape,
endShape: endShape ?? this.endShape,
width: width ?? this.width,
clipBehavior: clipBehavior ?? this.clipBehavior,
);
}