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