copyWith method
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,
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,
);
}