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