copyWith method
A copy with the given fields replaced.
Implementation
ListStyle copyWith({
double? bulletSize,
Color? bulletColor,
BoxShape? bulletShape,
TextStyle? markerTextStyle,
double? indent,
double? gapAfterMarker,
}) {
return ListStyle(
bulletSize: bulletSize ?? this.bulletSize,
bulletColor: bulletColor ?? this.bulletColor,
bulletShape: bulletShape ?? this.bulletShape,
markerTextStyle: markerTextStyle ?? this.markerTextStyle,
indent: indent ?? this.indent,
gapAfterMarker: gapAfterMarker ?? this.gapAfterMarker,
);
}