copyWith method
YaruRadioThemeData
copyWith({
- MaterialStateProperty<
Color?> ? color, - MaterialStateProperty<
Color?> ? borderColor, - MaterialStateProperty<
Color?> ? checkmarkColor, - MaterialStateProperty<
Color?> ? indicatorColor, - MaterialStateProperty<
MouseCursor?> ? mouseCursor,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
YaruRadioThemeData copyWith({
MaterialStateProperty<Color?>? color,
MaterialStateProperty<Color?>? borderColor,
MaterialStateProperty<Color?>? checkmarkColor,
MaterialStateProperty<Color?>? indicatorColor,
MaterialStateProperty<MouseCursor?>? mouseCursor,
}) {
return YaruRadioThemeData(
color: color ?? this.color,
borderColor: borderColor ?? this.borderColor,
checkmarkColor: checkmarkColor ?? this.checkmarkColor,
indicatorColor: indicatorColor ?? this.indicatorColor,
mouseCursor: mouseCursor ?? this.mouseCursor,
);
}