copyWith method
FlGridData
copyWith({
- bool? show,
- bool? drawHorizontalLine,
- double? horizontalInterval,
- GetDrawingGridLine? getDrawingHorizontalLine,
- CheckToShowGrid? checkToShowHorizontalLine,
- bool? drawVerticalLine,
- double? verticalInterval,
- GetDrawingGridLine? getDrawingVerticalLine,
- CheckToShowGrid? checkToShowVerticalLine,
Copies current FlGridData to a new FlGridData, and replaces provided values.
Implementation
FlGridData copyWith({
bool? show,
bool? drawHorizontalLine,
double? horizontalInterval,
GetDrawingGridLine? getDrawingHorizontalLine,
CheckToShowGrid? checkToShowHorizontalLine,
bool? drawVerticalLine,
double? verticalInterval,
GetDrawingGridLine? getDrawingVerticalLine,
CheckToShowGrid? checkToShowVerticalLine,
}) {
return FlGridData(
show: show ?? this.show,
drawHorizontalLine: drawHorizontalLine ?? this.drawHorizontalLine,
horizontalInterval: horizontalInterval ?? this.horizontalInterval,
getDrawingHorizontalLine:
getDrawingHorizontalLine ?? this.getDrawingHorizontalLine,
checkToShowHorizontalLine:
checkToShowHorizontalLine ?? this.checkToShowHorizontalLine,
drawVerticalLine: drawVerticalLine ?? this.drawVerticalLine,
verticalInterval: verticalInterval ?? this.verticalInterval,
getDrawingVerticalLine:
getDrawingVerticalLine ?? this.getDrawingVerticalLine,
checkToShowVerticalLine:
checkToShowVerticalLine ?? this.checkToShowVerticalLine,
);
}