copyWith method

  1. @override
DefaultColors copyWith({
  1. Brightness? brightness,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
DefaultColors copyWith({Brightness? brightness}) =>
    DefaultColors(brightness: brightness ?? this.brightness);