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