copyWith method

SafaehThemeData copyWith({
  1. double? tabletBreakpoint,
  2. double? desktopBreakpoint,
  3. double? dialogMaxWidth,
  4. Duration? motion,
  5. Curve? enterCurve,
  6. double? radius,
  7. double? listRadius,
  8. double? compactNavWidth,
  9. double? expandedNavWidth,
  10. Duration? navMotion,
  11. Duration? pageIndexMotion,
  12. Duration? sheetRoll,
  13. Curve? sheetRollEnter,
  14. Curve? exitCurve,
  15. double? cameraCompactHeightFraction,
  16. double? contentMaxWidth,
  17. double? contentMaxWidthDesktop,
  18. EdgeInsets? sheetBodyInset,
  19. EdgeInsets? sheetBodyInsetWide,
  20. 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,
  );
}