copyWith method

StatusBarThemeData copyWith({
  1. Color? background,
  2. Color? foreground,
  3. Color? keyBackground,
  4. Color? keyForeground,
  5. Style? keyStyle,
  6. Style? labelStyle,
  7. String? separator,
})

Copy with selective overrides.

Implementation

StatusBarThemeData copyWith({
  Color? background,
  Color? foreground,
  Color? keyBackground,
  Color? keyForeground,
  Style? keyStyle,
  Style? labelStyle,
  String? separator,
}) {
  return StatusBarThemeData(
    background: background ?? this.background,
    foreground: foreground ?? this.foreground,
    keyBackground: keyBackground ?? this.keyBackground,
    keyForeground: keyForeground ?? this.keyForeground,
    keyStyle: keyStyle ?? this.keyStyle,
    labelStyle: labelStyle ?? this.labelStyle,
    separator: separator ?? this.separator,
  );
}