copyWith method
SafaehThemeData
copyWith({
- double? tabletBreakpoint,
- double? desktopBreakpoint,
- double? dialogMaxWidth,
- Duration? motion,
- Curve? enterCurve,
- double? radius,
- double? listRadius,
- Duration? pageIndexMotion,
- Duration? sheetRoll,
- Curve? sheetRollEnter,
- Curve? exitCurve,
- double? cameraCompactHeightFraction,
- double? contentMaxWidth,
- double? contentMaxWidthDesktop,
- EdgeInsets? sheetBodyInset,
- EdgeInsets? sheetBodyInsetWide,
- SafaehFloatingAppearance? floatingAppearance,
Copies this theme, replacing any non-null arguments.
Implementation
SafaehThemeData copyWith({
double? tabletBreakpoint,
double? desktopBreakpoint,
double? dialogMaxWidth,
Duration? motion,
Curve? enterCurve,
double? radius,
double? listRadius,
double? compactNavWidth,
double? expandedNavWidth,
Duration? navMotion,
Duration? pageIndexMotion,
Duration? sheetRoll,
Curve? sheetRollEnter,
Curve? exitCurve,
double? cameraCompactHeightFraction,
double? contentMaxWidth,
double? contentMaxWidthDesktop,
EdgeInsets? sheetBodyInset,
EdgeInsets? sheetBodyInsetWide,
SafaehFloatingAppearance? floatingAppearance,
}) {
return SafaehThemeData(
tabletBreakpoint: tabletBreakpoint ?? this.tabletBreakpoint,
desktopBreakpoint: desktopBreakpoint ?? this.desktopBreakpoint,
dialogMaxWidth: dialogMaxWidth ?? this.dialogMaxWidth,
motion: motion ?? this.motion,
enterCurve: enterCurve ?? this.enterCurve,
radius: radius ?? this.radius,
listRadius: listRadius ?? this.listRadius,
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,
contentMaxWidthDesktop:
contentMaxWidthDesktop ?? this.contentMaxWidthDesktop,
sheetBodyInset: sheetBodyInset ?? this.sheetBodyInset,
sheetBodyInsetWide: sheetBodyInsetWide ?? this.sheetBodyInsetWide,
floatingAppearance: floatingAppearance ?? this.floatingAppearance,
);
}