copyWith method

PullDownMenuRouteTheme copyWith({
  1. Color? backgroundColor,
  2. BorderRadius? borderRadius,
  3. BoxShadow? beginShadow,
  4. BoxShadow? endShadow,
  5. double? width,
})

Creates a copy of this object with the given fields replaced with the new values.

Implementation

PullDownMenuRouteTheme copyWith({
  Color? backgroundColor,
  BorderRadius? borderRadius,
  BoxShadow? beginShadow,
  BoxShadow? endShadow,
  double? width,
}) =>
    PullDownMenuRouteTheme(
      backgroundColor: backgroundColor ?? this.backgroundColor,
      borderRadius: borderRadius ?? this.borderRadius,
      beginShadow: beginShadow ?? this.beginShadow,
      endShadow: endShadow ?? this.endShadow,
      width: width ?? this.width,
    );