copyWith method
Copies this theme, replacing any non-null arguments.
Implementation
SafaehThemeData copyWith({
double? tabletBreakpoint,
double? dialogMaxWidth,
Duration? motion,
Curve? enterCurve,
double? radius,
double? compactNavWidth,
double? expandedNavWidth,
Duration? navMotion,
Duration? pageIndexMotion,
Duration? sheetRoll,
Curve? sheetRollEnter,
Curve? exitCurve,
double? cameraCompactHeightFraction,
double? contentMaxWidth,
SafaehFloatingAppearance? floatingAppearance,
}) {
return SafaehThemeData(
tabletBreakpoint: tabletBreakpoint ?? this.tabletBreakpoint,
dialogMaxWidth: dialogMaxWidth ?? this.dialogMaxWidth,
motion: motion ?? this.motion,
enterCurve: enterCurve ?? this.enterCurve,
radius: radius ?? this.radius,
compactNavWidth: compactNavWidth ?? this.compactNavWidth,
expandedNavWidth: expandedNavWidth ?? this.expandedNavWidth,
navMotion: navMotion ?? this.navMotion,
pageIndexMotion: pageIndexMotion ?? this.pageIndexMotion,
sheetRoll: sheetRoll ?? this.sheetRoll,
sheetRollEnter: sheetRollEnter ?? this.sheetRollEnter,
exitCurve: exitCurve ?? this.exitCurve,
cameraCompactHeightFraction:
cameraCompactHeightFraction ?? this.cameraCompactHeightFraction,
contentMaxWidth: contentMaxWidth ?? this.contentMaxWidth,
floatingAppearance: floatingAppearance ?? this.floatingAppearance,
);
}