copyWith method

FlGridStyle copyWith({
  1. double? gridSpacingX,
  2. double? gridSpacingY,
  3. double? lineWidth,
  4. Color? lineColor,
  5. Color? intersectionColor,
  6. double? intersectionRadius,
  7. bool? showGrid,
})

Implementation

FlGridStyle copyWith({
  double? gridSpacingX,
  double? gridSpacingY,
  double? lineWidth,
  Color? lineColor,
  Color? intersectionColor,
  double? intersectionRadius,
  bool? showGrid,
}) {
  return FlGridStyle(
    gridSpacingX: gridSpacingX ?? this.gridSpacingX,
    gridSpacingY: gridSpacingY ?? this.gridSpacingY,
    lineWidth: lineWidth ?? this.lineWidth,
    lineColor: lineColor ?? this.lineColor,
    intersectionColor: intersectionColor ?? this.intersectionColor,
    intersectionRadius: intersectionRadius ?? this.intersectionRadius,
    showGrid: showGrid ?? this.showGrid,
  );
}