copyWith method

  1. @override
PullDownButtonTheme copyWith({
  1. PullDownMenuRouteTheme? routeTheme,
  2. PullDownMenuItemTheme? itemTheme,
  3. PullDownMenuDividerTheme? dividerTheme,
  4. PullDownMenuTitleTheme? titleTheme,
  5. bool? applyOpacity,
})
override

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

Implementation

@override
PullDownButtonTheme copyWith({
  PullDownMenuRouteTheme? routeTheme,
  PullDownMenuItemTheme? itemTheme,
  PullDownMenuDividerTheme? dividerTheme,
  PullDownMenuTitleTheme? titleTheme,
  bool? applyOpacity,
}) =>
    PullDownButtonTheme(
      routeTheme: routeTheme ?? this.routeTheme,
      itemTheme: itemTheme ?? this.itemTheme,
      dividerTheme: dividerTheme ?? this.dividerTheme,
      titleTheme: titleTheme ?? this.titleTheme,
      applyOpacity: applyOpacity ?? this.applyOpacity,
    );