copyWith method

RadioTheme copyWith({
  1. ValueGetter<Color?>? activeColor,
  2. ValueGetter<Color?>? borderColor,
  3. ValueGetter<double?>? size,
  4. ValueGetter<Color?>? backgroundColor,
})

Implementation

RadioTheme copyWith({
  ValueGetter<Color?>? activeColor,
  ValueGetter<Color?>? borderColor,
  ValueGetter<double?>? size,
  ValueGetter<Color?>? backgroundColor,
}) {
  return RadioTheme(
    activeColor: activeColor == null ? this.activeColor : activeColor(),
    borderColor: borderColor == null ? this.borderColor : borderColor(),
    size: size == null ? this.size : size(),
    backgroundColor:
        backgroundColor == null ? this.backgroundColor : backgroundColor(),
  );
}