copyWith method

GlassThemeData copyWith({
  1. Brightness? brightness,
  2. Color? foreground,
  3. Color? muted,
  4. Color? glass,
  5. Color? glassActive,
  6. Color? edge,
  7. Color? drop,
  8. Color? selection,
  9. Color? lens,
  10. Color? lensDrop,
  11. Color? segmentTrack,
  12. Color? segmentThumb,
  13. Color? segmentLabel,
  14. Color? segmentLens,
  15. Color? surface,
  16. Color? surfaceEdge,
  17. Color? shadow,
  18. Color? highlight,
  19. Color? separator,
  20. Color? destructive,
  21. Color? track,
  22. Color? rail,
  23. Color? on,
  24. Color? fill,
  25. Color? ring,
  26. double? lensShine,
  27. double? rimShine,
  28. double? blur,
  29. double? saturation,
  30. double? glassBend,
  31. double? glassDispersion,
  32. double? switchBend,
  33. double? sliderBend,
  34. double? segmentBend,
  35. double? tabBend,
  36. double? tabDispersion,
  37. TextStyle? textStyle,
  38. GlassMode? mode,
  39. GlassQuality? quality,
})

A copy with the given fields replaced.

Implementation

GlassThemeData copyWith({
  Brightness? brightness,
  Color? foreground,
  Color? muted,
  Color? glass,
  Color? glassActive,
  Color? edge,
  Color? drop,
  Color? selection,
  Color? lens,
  Color? lensDrop,
  Color? segmentTrack,
  Color? segmentThumb,
  Color? segmentLabel,
  Color? segmentLens,
  Color? surface,
  Color? surfaceEdge,
  Color? shadow,
  Color? highlight,
  Color? separator,
  Color? destructive,
  Color? track,
  Color? rail,
  Color? on,
  Color? fill,
  Color? ring,
  double? lensShine,
  double? rimShine,
  double? blur,
  double? saturation,
  double? glassBend,
  double? glassDispersion,
  double? switchBend,
  double? sliderBend,
  double? segmentBend,
  double? tabBend,
  double? tabDispersion,
  TextStyle? textStyle,
  GlassMode? mode,
  GlassQuality? quality,
}) {
  return GlassThemeData(
    brightness: brightness ?? this.brightness,
    foreground: foreground ?? this.foreground,
    muted: muted ?? this.muted,
    glass: glass ?? this.glass,
    glassActive: glassActive ?? this.glassActive,
    edge: edge ?? this.edge,
    drop: drop ?? this.drop,
    selection: selection ?? this.selection,
    lens: lens ?? this.lens,
    lensDrop: lensDrop ?? this.lensDrop,
    segmentTrack: segmentTrack ?? this.segmentTrack,
    segmentThumb: segmentThumb ?? this.segmentThumb,
    segmentLabel: segmentLabel ?? this.segmentLabel,
    segmentLens: segmentLens ?? this.segmentLens,
    surface: surface ?? this.surface,
    surfaceEdge: surfaceEdge ?? this.surfaceEdge,
    shadow: shadow ?? this.shadow,
    highlight: highlight ?? this.highlight,
    separator: separator ?? this.separator,
    destructive: destructive ?? this.destructive,
    track: track ?? this.track,
    rail: rail ?? this.rail,
    on: on ?? this.on,
    fill: fill ?? this.fill,
    ring: ring ?? this.ring,
    lensShine: lensShine ?? this.lensShine,
    rimShine: rimShine ?? this.rimShine,
    blur: blur ?? this.blur,
    saturation: saturation ?? this.saturation,
    glassBend: glassBend ?? this.glassBend,
    glassDispersion: glassDispersion ?? this.glassDispersion,
    switchBend: switchBend ?? this.switchBend,
    sliderBend: sliderBend ?? this.sliderBend,
    segmentBend: segmentBend ?? this.segmentBend,
    tabBend: tabBend ?? this.tabBend,
    tabDispersion: tabDispersion ?? this.tabDispersion,
    textStyle: textStyle ?? this.textStyle,
    mode: mode ?? this.mode,
    quality: quality ?? this.quality,
  );
}