copyWith method

  1. @override
TxRadioThemeData copyWith({
  1. MaterialStateProperty<MouseCursor?>? mouseCursor,
  2. MaterialStateProperty<Color?>? fillColor,
  3. MaterialStateProperty<Color?>? checkColor,
  4. MaterialStateProperty<Color?>? overlayColor,
  5. double? splashRadius,
  6. MaterialTapTargetSize? materialTapTargetSize,
  7. VisualDensity? visualDensity,
  8. OutlinedBorder? shape,
  9. BorderSide? side,
})
override

创建此对象的副本,但将给定字段替换为新值。

Implementation

@override
TxRadioThemeData copyWith({
  MaterialStateProperty<MouseCursor?>? mouseCursor,
  MaterialStateProperty<Color?>? fillColor,
  MaterialStateProperty<Color?>? checkColor,
  MaterialStateProperty<Color?>? overlayColor,
  double? splashRadius,
  MaterialTapTargetSize? materialTapTargetSize,
  VisualDensity? visualDensity,
  OutlinedBorder? shape,
  BorderSide? side,
}) {
  return TxRadioThemeData(
    mouseCursor: mouseCursor ?? this.mouseCursor,
    fillColor: fillColor ?? this.fillColor,
    overlayColor: overlayColor ?? this.overlayColor,
    splashRadius: splashRadius ?? this.splashRadius,
    materialTapTargetSize:
        materialTapTargetSize ?? this.materialTapTargetSize,
    visualDensity: visualDensity ?? this.visualDensity,
    shape: shape ?? this.shape,
    side: side ?? this.side,
  );
}