copyWith method

WritingGuidelinesStyle copyWith({
  1. double? fontSize,
  2. Color? lineColor,
  3. double? lineWidth,
  4. double? baselineRatio,
  5. double? heightRatio,
  6. Color? backgroundColor,
  7. EdgeInsetsGeometry? padding,
  8. VoidCallback? onTap,
})

Implementation

WritingGuidelinesStyle copyWith({
  double? fontSize,
  Color? lineColor,
  double? lineWidth,
  double? baselineRatio,
  double? heightRatio,
  Color? backgroundColor,
  EdgeInsetsGeometry? padding,
  VoidCallback? onTap,
}) {
  return WritingGuidelinesStyle(
    fontSize: fontSize ?? this.fontSize,
    lineColor: lineColor ?? this.lineColor,
    lineWidth: lineWidth ?? this.lineWidth,
    baselineRatio: baselineRatio ?? this.baselineRatio,
    heightRatio: heightRatio ?? this.heightRatio,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    padding: padding ?? this.padding,
    onTap: onTap ?? this.onTap,
  );
}