copyWith method

  1. @override
M3EToolbarTheme copyWith({
  1. double? containerSize,
  2. double? floatingPadding,
  3. double? dockedHorizontalPadding,
  4. double? actionGap,
  5. double? dockedPreferredGap,
  6. double? dockedMinGap,
  7. double? centeredGap,
  8. double? iconSize,
  9. double? elevation,
  10. double? floatingElevation,
  11. double? elevationWithFab,
  12. double? toolbarToFabGap,
  13. double? screenOffset,
  14. double? verticalScreenOffset,
  15. double? compactBreakpoint,
  16. double? fabExpandedIcon,
  17. double? fabCollapsedIcon,
  18. double? dockedRadius,
  19. double? heightSmall,
  20. double? heightMedium,
  21. double? heightLarge,
  22. double? compactHeightReduction,
  23. double? elevationSurface,
  24. double? elevationProminent,
  25. M3ESpring? expandSpring,
  26. M3ESpring? labelSpring,
})
override

Returns a copy with non-null fields replaced.

Implementation

@override
M3EToolbarTheme copyWith({
  double? containerSize,
  double? floatingPadding,
  double? dockedHorizontalPadding,
  double? actionGap,
  double? dockedPreferredGap,
  double? dockedMinGap,
  double? centeredGap,
  double? iconSize,
  double? elevation,
  double? floatingElevation,
  double? elevationWithFab,
  double? toolbarToFabGap,
  double? screenOffset,
  double? verticalScreenOffset,
  double? compactBreakpoint,
  double? fabExpandedIcon,
  double? fabCollapsedIcon,
  double? dockedRadius,
  double? heightSmall,
  double? heightMedium,
  double? heightLarge,
  double? compactHeightReduction,
  double? elevationSurface,
  double? elevationProminent,
  M3ESpring? expandSpring,
  M3ESpring? labelSpring,
}) {
  return M3EToolbarTheme(
    containerSize: containerSize ?? this.containerSize,
    floatingPadding: floatingPadding ?? this.floatingPadding,
    dockedHorizontalPadding:
        dockedHorizontalPadding ?? this.dockedHorizontalPadding,
    actionGap: actionGap ?? this.actionGap,
    dockedPreferredGap: dockedPreferredGap ?? this.dockedPreferredGap,
    dockedMinGap: dockedMinGap ?? this.dockedMinGap,
    centeredGap: centeredGap ?? this.centeredGap,
    iconSize: iconSize ?? this.iconSize,
    elevation: elevation ?? this.elevation,
    floatingElevation: floatingElevation ?? this.floatingElevation,
    elevationWithFab: elevationWithFab ?? this.elevationWithFab,
    toolbarToFabGap: toolbarToFabGap ?? this.toolbarToFabGap,
    screenOffset: screenOffset ?? this.screenOffset,
    verticalScreenOffset: verticalScreenOffset ?? this.verticalScreenOffset,
    compactBreakpoint: compactBreakpoint ?? this.compactBreakpoint,
    fabExpandedIcon: fabExpandedIcon ?? this.fabExpandedIcon,
    fabCollapsedIcon: fabCollapsedIcon ?? this.fabCollapsedIcon,
    dockedRadius: dockedRadius ?? this.dockedRadius,
    heightSmall: heightSmall ?? this.heightSmall,
    heightMedium: heightMedium ?? this.heightMedium,
    heightLarge: heightLarge ?? this.heightLarge,
    compactHeightReduction:
        compactHeightReduction ?? this.compactHeightReduction,
    elevationSurface: elevationSurface ?? this.elevationSurface,
    elevationProminent: elevationProminent ?? this.elevationProminent,
    expandSpring: expandSpring ?? this.expandSpring,
    labelSpring: labelSpring ?? this.labelSpring,
  );
}