copyWith method

CheckboxFieldTheme copyWith({
  1. TextStyle? textStyle,
  2. MaterialStateProperty<Color?>? textColor,
  3. InputDecorationTheme? decorationTheme,
  4. CheckboxThemeData? checkboxTheme,
  5. FieldBlocBuilderControlAffinity? controlAffinity,
  6. bool? canTapItemTile,
})

Implementation

CheckboxFieldTheme copyWith({
  TextStyle? textStyle,
  MaterialStateProperty<Color?>? textColor,
  InputDecorationTheme? decorationTheme,
  CheckboxThemeData? checkboxTheme,
  FieldBlocBuilderControlAffinity? controlAffinity,
  bool? canTapItemTile,
}) {
  return CheckboxFieldTheme(
    textStyle: textStyle ?? this.textStyle,
    textColor: textColor ?? this.textColor,
    decorationTheme: decorationTheme ?? this.decorationTheme,
    checkboxTheme: checkboxTheme ?? this.checkboxTheme,
    controlAffinity: controlAffinity ?? this.controlAffinity,
    canTapItemTile: canTapItemTile ?? this.canTapItemTile,
  );
}