copyWith method

  1. @override
YaruRadioThemeData copyWith({
  1. MaterialStateProperty<Color?>? color,
  2. MaterialStateProperty<Color?>? borderColor,
  3. MaterialStateProperty<Color?>? checkmarkColor,
  4. MaterialStateProperty<Color?>? indicatorColor,
  5. 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,
  );
}