copyWith method
WritingGuidelinesStyle
copyWith({
- double? fontSize,
- Color? lineColor,
- double? lineWidth,
- double? baselineRatio,
- double? heightRatio,
- Color? backgroundColor,
- EdgeInsetsGeometry? padding,
- 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,
);
}