copyWith method

ListStyle copyWith({
  1. double? bulletSize,
  2. Color? bulletColor,
  3. BoxShape? bulletShape,
  4. TextStyle? markerTextStyle,
  5. double? indent,
  6. double? gapAfterMarker,
})

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,
  );
}