copyWith method

  1. @override
M3EToolbarTheme copyWith({
  1. double? containerSize,
  2. double? floatingPadding,
  3. double? dockedHorizontalPadding,
  4. double? iconSize,
  5. double? elevation,
  6. double? elevationWithFab,
  7. double? toolbarToFabGap,
  8. double? screenOffset,
  9. double? heightSmall,
  10. double? heightMedium,
  11. double? heightLarge,
  12. double? compactHeightReduction,
  13. double? elevationSurface,
  14. double? elevationProminent,
})
override

Returns a copy with non-null fields replaced.

Implementation

@override
M3EToolbarTheme copyWith({
  double? containerSize,
  double? floatingPadding,
  double? dockedHorizontalPadding,
  double? iconSize,
  double? elevation,
  double? elevationWithFab,
  double? toolbarToFabGap,
  double? screenOffset,
  double? heightSmall,
  double? heightMedium,
  double? heightLarge,
  double? compactHeightReduction,
  double? elevationSurface,
  double? elevationProminent,
}) {
  return M3EToolbarTheme(
    containerSize: containerSize ?? this.containerSize,
    floatingPadding: floatingPadding ?? this.floatingPadding,
    dockedHorizontalPadding:
        dockedHorizontalPadding ?? this.dockedHorizontalPadding,
    iconSize: iconSize ?? this.iconSize,
    elevation: elevation ?? this.elevation,
    elevationWithFab: elevationWithFab ?? this.elevationWithFab,
    toolbarToFabGap: toolbarToFabGap ?? this.toolbarToFabGap,
    screenOffset: screenOffset ?? this.screenOffset,
    heightSmall: heightSmall ?? this.heightSmall,
    heightMedium: heightMedium ?? this.heightMedium,
    heightLarge: heightLarge ?? this.heightLarge,
    compactHeightReduction:
        compactHeightReduction ?? this.compactHeightReduction,
    elevationSurface: elevationSurface ?? this.elevationSurface,
    elevationProminent: elevationProminent ?? this.elevationProminent,
  );
}