copyWith method

PopupMenuThemeData copyWith (
  1. {Color color,
  2. ShapeBorder shape,
  3. double elevation,
  4. TextStyle textStyle}
)

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

Implementation

PopupMenuThemeData copyWith({
  Color color,
  ShapeBorder shape,
  double elevation,
  TextStyle textStyle,
}) {
  return PopupMenuThemeData(
    color: color ?? this.color,
    shape: shape ?? this.shape,
    elevation: elevation ?? this.elevation,
    textStyle: textStyle ?? this.textStyle,
  );
}