merge method
This style, with any unset field taken from other, field by field.
Implementation
ListStyle merge(ListStyle? other) {
if (other == null) {
return this;
}
return ListStyle(
bulletSize: bulletSize ?? other.bulletSize,
bulletColor: bulletColor ?? other.bulletColor,
bulletShape: bulletShape ?? other.bulletShape,
markerTextStyle: markerTextStyle ?? other.markerTextStyle,
indent: indent ?? other.indent,
gapAfterMarker: gapAfterMarker ?? other.gapAfterMarker,
);
}