copyWith method
DrawerTheme
copyWith({
- ValueGetter<
double?> ? surfaceOpacity, - ValueGetter<
double?> ? surfaceBlur, - ValueGetter<
Color?> ? barrierColor, - ValueGetter<
bool?> ? showDragHandle, - ValueGetter<
Size?> ? dragHandleSize,
Implementation
DrawerTheme copyWith({
ValueGetter<double?>? surfaceOpacity,
ValueGetter<double?>? surfaceBlur,
ValueGetter<Color?>? barrierColor,
ValueGetter<bool?>? showDragHandle,
ValueGetter<Size?>? dragHandleSize,
}) {
return DrawerTheme(
surfaceOpacity:
surfaceOpacity == null ? this.surfaceOpacity : surfaceOpacity(),
surfaceBlur: surfaceBlur == null ? this.surfaceBlur : surfaceBlur(),
barrierColor: barrierColor == null ? this.barrierColor : barrierColor(),
showDragHandle:
showDragHandle == null ? this.showDragHandle : showDragHandle(),
dragHandleSize:
dragHandleSize == null ? this.dragHandleSize : dragHandleSize(),
);
}