From 71dbf1ba0aab0eec1115e013f2ab25917bf1335a Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Wed, 8 Jan 2025 00:45:54 +0100 Subject: [PATCH 01/27] Add error indicator data classes in our axis-based charts --- lib/src/chart/bar_chart/bar_chart_data.dart | 9 ++ .../base/axis_chart/axis_chart_data.dart | 143 +++++++++++++++++- lib/src/chart/line_chart/line_chart_data.dart | 9 ++ .../scatter_chart/scatter_chart_data.dart | 19 +++ 4 files changed, 176 insertions(+), 4 deletions(-) diff --git a/lib/src/chart/bar_chart/bar_chart_data.dart b/lib/src/chart/bar_chart/bar_chart_data.dart index eadf35ae4..e4d04761b 100644 --- a/lib/src/chart/bar_chart/bar_chart_data.dart +++ b/lib/src/chart/bar_chart/bar_chart_data.dart @@ -48,6 +48,7 @@ class BarChartData extends AxisChartData with EquatableMixin { super.backgroundColor, ExtraLinesData? extraLinesData, super.rotationQuarterTurns, + super.errorIndicatorData, }) : barGroups = barGroups ?? const [], groupsSpace = groupsSpace ?? 16, alignment = alignment ?? BarChartAlignment.spaceEvenly, @@ -96,6 +97,7 @@ class BarChartData extends AxisChartData with EquatableMixin { Color? backgroundColor, ExtraLinesData? extraLinesData, int? rotationQuarterTurns, + FlErrorIndicatorData? errorIndicatorData, }) => BarChartData( barGroups: barGroups ?? this.barGroups, @@ -112,6 +114,7 @@ class BarChartData extends AxisChartData with EquatableMixin { backgroundColor: backgroundColor ?? this.backgroundColor, extraLinesData: extraLinesData ?? this.extraLinesData, rotationQuarterTurns: rotationQuarterTurns ?? this.rotationQuarterTurns, + errorIndicatorData: errorIndicatorData ?? this.errorIndicatorData, ); /// Lerps a [BaseChartData] based on [t] value, check [Tween.lerp]. @@ -135,6 +138,11 @@ class BarChartData extends AxisChartData with EquatableMixin { extraLinesData: ExtraLinesData.lerp(a.extraLinesData, b.extraLinesData, t), rotationQuarterTurns: b.rotationQuarterTurns, + errorIndicatorData: FlErrorIndicatorData.lerp( + a.errorIndicatorData, + b.errorIndicatorData, + t, + ), ); } else { throw Exception('Illegal State'); @@ -158,6 +166,7 @@ class BarChartData extends AxisChartData with EquatableMixin { backgroundColor, extraLinesData, rotationQuarterTurns, + errorIndicatorData, ]; } diff --git a/lib/src/chart/base/axis_chart/axis_chart_data.dart b/lib/src/chart/base/axis_chart/axis_chart_data.dart index 07be42036..eb8a5fae8 100644 --- a/lib/src/chart/base/axis_chart/axis_chart_data.dart +++ b/lib/src/chart/base/axis_chart/axis_chart_data.dart @@ -30,6 +30,7 @@ abstract class AxisChartData extends BaseChartData with EquatableMixin { required super.touchData, ExtraLinesData? extraLinesData, this.rotationQuarterTurns = 0, + this.errorIndicatorData = const FlErrorIndicatorData(), }) : gridData = gridData ?? const FlGridData(), rangeAnnotations = rangeAnnotations ?? const RangeAnnotations(), baselineX = baselineX ?? 0, @@ -66,6 +67,8 @@ abstract class AxisChartData extends BaseChartData with EquatableMixin { /// Rotates the chart by 90 degrees clockwise in each turn final int rotationQuarterTurns; + final FlErrorIndicatorData errorIndicatorData; + /// Used for equality check, see [EquatableMixin]. @override List get props => [ @@ -84,6 +87,7 @@ abstract class AxisChartData extends BaseChartData with EquatableMixin { touchData, extraLinesData, rotationQuarterTurns, + errorIndicatorData, ]; } @@ -485,25 +489,36 @@ class FlSpot { /// /// [y] determines cartesian (axis based) vertically position /// 0 means most bottom point of the chart - const FlSpot(this.x, this.y); + const FlSpot( + this.x, + this.y, { + this.xError, + this.yError, + }); final double x; final double y; + final FlErrorRange? xError; + final FlErrorRange? yError; /// Copies current [FlSpot] to a new [FlSpot], /// and replaces provided values. FlSpot copyWith({ double? x, double? y, + FlErrorRange? xError, + FlErrorRange? yError, }) => FlSpot( x ?? this.x, y ?? this.y, + xError: xError ?? this.xError, + yError: yError ?? this.yError, ); ///Prints x and y coordinates of FlSpot list @override - String toString() => '($x, $y)'; + String toString() => '($x, $y, $xError, $yError)'; /// Used for splitting lines, or maybe other concepts. static const FlSpot nullSpot = FlSpot(double.nan, double.nan); @@ -530,6 +545,8 @@ class FlSpot { return FlSpot( lerpDouble(a.x, b.x, t)!, lerpDouble(a.y, b.y, t)!, + xError: FlErrorRange.lerp(a.xError, b.xError, t), + yError: FlErrorRange.lerp(a.yError, b.yError, t), ); } @@ -545,12 +562,46 @@ class FlSpot { return true; } - return other.x == x && other.y == y; + return other.x == x && + other.y == y && + other.xError == xError && + other.yError == yError; } /// Override hashCode @override - int get hashCode => x.hashCode ^ y.hashCode; + int get hashCode => + x.hashCode ^ y.hashCode ^ xError.hashCode ^ yError.hashCode; +} + +class FlErrorRange with EquatableMixin { + const FlErrorRange({ + required this.lowerBy, + required this.upperBy, + }) : assert(lowerBy >= 0, 'lowerBy must be non-negative'), + assert(upperBy >= 0, 'upperBy must be non-negative'); + + const FlErrorRange.symmetric(double value) + : lowerBy = value, + upperBy = value, + assert(value >= 0, 'value must be non-negative'); + + final double lowerBy; + final double upperBy; + + static FlErrorRange? lerp(FlErrorRange? a, FlErrorRange? b, double t) { + if (a != null && b != null) { + return FlErrorRange( + lowerBy: lerpDouble(a.lowerBy, b.lowerBy, t)!, + upperBy: lerpDouble(a.upperBy, b.upperBy, t)!, + ); + } + + return b; + } + + @override + List get props => [lowerBy, upperBy]; } /// Responsible to hold grid data, @@ -1636,3 +1687,87 @@ class FlDotCrossPainter extends FlDotPainter { width, ]; } + +class FlErrorIndicatorData with EquatableMixin { + const FlErrorIndicatorData({ + this.show = false, + this.errorPainter = const FlSimpleErrorPainter(), + }); + + final bool show; + final FlSpotErrorRangePainter errorPainter; + + static FlErrorIndicatorData lerp( + FlErrorIndicatorData a, + FlErrorIndicatorData b, + double t, + ) => + FlErrorIndicatorData( + show: b.show, + errorPainter: b.errorPainter.lerp(a.errorPainter, b.errorPainter, t), + ); + + @override + List get props => [ + show, + errorPainter, + ]; +} + +abstract class FlSpotErrorRangePainter with EquatableMixin { + const FlSpotErrorRangePainter(); + + void draw( + Canvas canvas, + Offset offsetInCanvas, + FlSpot origin, + ); + + Size getSize(FlSpot spot); + + Color get mainColor; + + FlSpotErrorRangePainter lerp( + FlSpotErrorRangePainter a, FlSpotErrorRangePainter b, double t); +} + +class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { + const FlSimpleErrorPainter(); + + @override + void draw(Canvas canvas, Offset offsetInCanvas, FlSpot origin) { + print('Drawing error indicator at $offsetInCanvas'); + final lineFrom = Offset(offsetInCanvas.dx, offsetInCanvas.dy - 10); + final lineTo = Offset(offsetInCanvas.dx, offsetInCanvas.dy + 10); + canvas.drawLine( + lineFrom, + lineTo, + Paint() + ..color = Colors.red + ..style = PaintingStyle.stroke + ..strokeWidth = 2, + ); + } + + @override + Size getSize(FlSpot spot) { + return const Size(10, 10); + } + + @override + FlSpotErrorRangePainter lerp( + FlSpotErrorRangePainter a, + FlSpotErrorRangePainter b, + double t, + ) { + return this; + } + + @override + Color get mainColor => Colors.black; + + @override + List get props => [ + mainColor, + ]; +} diff --git a/lib/src/chart/line_chart/line_chart_data.dart b/lib/src/chart/line_chart/line_chart_data.dart index b32df77d3..1d01553b3 100644 --- a/lib/src/chart/line_chart/line_chart_data.dart +++ b/lib/src/chart/line_chart/line_chart_data.dart @@ -59,6 +59,7 @@ class LineChartData extends AxisChartData with EquatableMixin { super.clipData = const FlClipData.none(), super.backgroundColor, super.rotationQuarterTurns, + super.errorIndicatorData, }) : super( touchData: lineTouchData, minX: minX ?? double.nan, @@ -111,6 +112,11 @@ class LineChartData extends AxisChartData with EquatableMixin { lineTouchData: b.lineTouchData, showingTooltipIndicators: b.showingTooltipIndicators, rotationQuarterTurns: b.rotationQuarterTurns, + errorIndicatorData: FlErrorIndicatorData.lerp( + a.errorIndicatorData, + b.errorIndicatorData, + t, + ), ); } else { throw Exception('Illegal State'); @@ -138,6 +144,7 @@ class LineChartData extends AxisChartData with EquatableMixin { FlClipData? clipData, Color? backgroundColor, int? rotationQuarterTurns, + FlErrorIndicatorData? errorIndicatorData, }) => LineChartData( lineBarsData: lineBarsData ?? this.lineBarsData, @@ -159,6 +166,7 @@ class LineChartData extends AxisChartData with EquatableMixin { clipData: clipData ?? this.clipData, backgroundColor: backgroundColor ?? this.backgroundColor, rotationQuarterTurns: rotationQuarterTurns ?? this.rotationQuarterTurns, + errorIndicatorData: errorIndicatorData ?? this.errorIndicatorData, ); /// Used for equality check, see [EquatableMixin]. @@ -182,6 +190,7 @@ class LineChartData extends AxisChartData with EquatableMixin { clipData, backgroundColor, rotationQuarterTurns, + errorIndicatorData, ]; } diff --git a/lib/src/chart/scatter_chart/scatter_chart_data.dart b/lib/src/chart/scatter_chart/scatter_chart_data.dart index 64f0704eb..8dd48403a 100644 --- a/lib/src/chart/scatter_chart/scatter_chart_data.dart +++ b/lib/src/chart/scatter_chart/scatter_chart_data.dart @@ -50,6 +50,7 @@ class ScatterChartData extends AxisChartData with EquatableMixin { super.backgroundColor, ScatterLabelSettings? scatterLabelSettings, super.rotationQuarterTurns, + super.errorIndicatorData, }) : scatterSpots = scatterSpots ?? const [], scatterTouchData = scatterTouchData ?? ScatterTouchData(), showingTooltipIndicators = showingTooltipIndicators ?? const [], @@ -118,6 +119,11 @@ class ScatterChartData extends AxisChartData with EquatableMixin { t, ), rotationQuarterTurns: b.rotationQuarterTurns, + errorIndicatorData: FlErrorIndicatorData.lerp( + a.errorIndicatorData, + b.errorIndicatorData, + t, + ), ); } else { throw Exception('Illegal State'); @@ -143,6 +149,7 @@ class ScatterChartData extends AxisChartData with EquatableMixin { Color? backgroundColor, ScatterLabelSettings? scatterLabelSettings, int? rotationQuarterTurns, + FlErrorIndicatorData? errorIndicatorData, }) => ScatterChartData( scatterSpots: scatterSpots ?? this.scatterSpots, @@ -162,6 +169,7 @@ class ScatterChartData extends AxisChartData with EquatableMixin { backgroundColor: backgroundColor ?? this.backgroundColor, scatterLabelSettings: scatterLabelSettings ?? this.scatterLabelSettings, rotationQuarterTurns: rotationQuarterTurns ?? this.rotationQuarterTurns, + errorIndicatorData: errorIndicatorData ?? this.errorIndicatorData, ); /// Used for equality check, see [EquatableMixin]. @@ -186,6 +194,7 @@ class ScatterChartData extends AxisChartData with EquatableMixin { borderData, touchData, rotationQuarterTurns, + errorIndicatorData, ]; } @@ -200,6 +209,8 @@ class ScatterSpot extends FlSpot with EquatableMixin { bool? show, int? renderPriority, FlDotPainter? dotPainter, + super.xError, + super.yError, }) : show = show ?? true, renderPriority = renderPriority ?? 0, dotPainter = dotPainter ?? @@ -235,6 +246,8 @@ class ScatterSpot extends FlSpot with EquatableMixin { bool? show, int? renderPriority, FlDotPainter? dotPainter, + FlErrorRange? xError, + FlErrorRange? yError, }) => ScatterSpot( x ?? this.x, @@ -242,6 +255,8 @@ class ScatterSpot extends FlSpot with EquatableMixin { show: show ?? this.show, renderPriority: renderPriority ?? this.renderPriority, dotPainter: dotPainter ?? this.dotPainter, + xError: xError ?? this.xError, + yError: yError ?? this.yError, ); /// Lerps a [ScatterSpot] based on [t] value, check [Tween.lerp]. @@ -253,6 +268,8 @@ class ScatterSpot extends FlSpot with EquatableMixin { renderPriority: a.renderPriority + (t * (b.renderPriority - a.renderPriority)).round(), dotPainter: a.dotPainter.lerp(a.dotPainter, b.dotPainter, t), + xError: FlErrorRange.lerp(a.xError, b.xError, t), + yError: FlErrorRange.lerp(a.yError, b.yError, t), ); /// Used for equality check, see [EquatableMixin]. @@ -263,6 +280,8 @@ class ScatterSpot extends FlSpot with EquatableMixin { show, renderPriority, dotPainter, + xError, + yError, ]; } From 34630a25e3d5915e597010cbf3043ae29fba4a06 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Wed, 8 Jan 2025 00:46:04 +0100 Subject: [PATCH 02/27] Test --- .../samples/line/line_chart_sample2.dart | 45 ++++++++++++++++--- example/macos/Podfile.lock | 2 +- .../chart/line_chart/line_chart_painter.dart | 40 +++++++++++++++++ lib/src/utils/canvas_wrapper.dart | 9 ++++ 4 files changed, 88 insertions(+), 8 deletions(-) diff --git a/example/lib/presentation/samples/line/line_chart_sample2.dart b/example/lib/presentation/samples/line/line_chart_sample2.dart index a22e2b3de..e2ee12f8a 100644 --- a/example/lib/presentation/samples/line/line_chart_sample2.dart +++ b/example/lib/presentation/samples/line/line_chart_sample2.dart @@ -162,16 +162,47 @@ class _LineChartSample2State extends State { maxX: 11, minY: 0, maxY: 6, + errorIndicatorData: const FlErrorIndicatorData( + show: true, + ), lineBarsData: [ LineChartBarData( spots: const [ - FlSpot(0, 3), - FlSpot(2.6, 2), - FlSpot(4.9, 5), - FlSpot(6.8, 3.1), - FlSpot(8, 4), - FlSpot(9.5, 3), - FlSpot(11, 4), + FlSpot( + 0, + 3, + yError: FlErrorRange.symmetric(5), + ), + FlSpot( + 2.6, + 2, + yError: FlErrorRange.symmetric(5), + ), + FlSpot( + 4.9, + 5, + yError: FlErrorRange.symmetric(5), + ), + FlSpot( + 6.8, + 3.1, + yError: FlErrorRange.symmetric(5), + ), + FlSpot( + 8, + 4, + yError: FlErrorRange.symmetric(5), + ), + FlSpot( + 9.5, + 3, + yError: FlErrorRange.symmetric(5), + ), + FlSpot( + 11, + 4, + yError: FlErrorRange.symmetric(5), + ), ], isCurved: true, gradient: LinearGradient( diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index a36b9516f..8e42003dc 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -26,7 +26,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 - package_info_plus: fa739dd842b393193c5ca93c26798dff6e3d0e0c + package_info_plus: 12f1c5c2cfe8727ca46cbd0b26677728972d9a5b path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 url_launcher_macos: 5f437abeda8c85500ceb03f5c1938a8c5a705399 diff --git a/lib/src/chart/line_chart/line_chart_painter.dart b/lib/src/chart/line_chart/line_chart_painter.dart index c017d353d..fb7e89c39 100644 --- a/lib/src/chart/line_chart/line_chart_painter.dart +++ b/lib/src/chart/line_chart/line_chart_painter.dart @@ -149,6 +149,22 @@ class LineChartPainter extends AxisChartPainter { canvasWrapper.restore(); } + // Draw error indicators + for (var i = 0; i < data.lineBarsData.length; i++) { + final barData = data.lineBarsData[i]; + + if (!barData.show) { + continue; + } + + drawErrorIndicatorData( + canvasWrapper, + barData, + data.errorIndicatorData, + holder, + ); + } + // Draw touch tooltip on most top spot for (var i = 0; i < data.showingTooltipIndicators.length; i++) { var tooltipSpots = data.showingTooltipIndicators[i]; @@ -357,6 +373,30 @@ class LineChartPainter extends AxisChartPainter { } } + @visibleForTesting + void drawErrorIndicatorData( + CanvasWrapper canvasWrapper, + LineChartBarData barData, + FlErrorIndicatorData errorIndicatorData, + PaintHolder holder, + ) { + if (!errorIndicatorData.show) { + return; + } + + final viewSize = canvasWrapper.size; + + for (var i = 0; i < barData.spots.length; i++) { + final spot = barData.spots[i]; + if (spot.isNotNull()) { + final x = getPixelX(spot.x, viewSize, holder); + final y = getPixelY(spot.y, viewSize, holder); + final painter = errorIndicatorData.errorPainter; + canvasWrapper.drawErrorIndicator(painter, spot, Offset(x, y)); + } + } + } + @visibleForTesting void drawTouchedSpotsIndicator( CanvasWrapper canvasWrapper, diff --git a/lib/src/utils/canvas_wrapper.dart b/lib/src/utils/canvas_wrapper.dart index a38e83f07..586d79ae0 100644 --- a/lib/src/utils/canvas_wrapper.dart +++ b/lib/src/utils/canvas_wrapper.dart @@ -16,6 +16,7 @@ class CanvasWrapper { this.canvas, this.size, ); + final Canvas canvas; final Size size; @@ -118,6 +119,14 @@ class CanvasWrapper { painter.draw(canvas, spot, offset); } + void drawErrorIndicator( + FlSpotErrorRangePainter painter, + FlSpot origin, + Offset offset, + ) { + painter.draw(canvas, offset, origin); + } + /// Handles performing multiple draw actions rotated. void drawRotated({ required Size size, From dd5e703218b66a8def635a841f69c68434a71027 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Wed, 8 Jan 2025 23:46:48 +0100 Subject: [PATCH 03/27] Implement simple drawing error functionality (tested in line_chart_sample2.dart) --- .../samples/line/line_chart_sample2.dart | 21 +++-- .../base/axis_chart/axis_chart_data.dart | 81 ++++++++++++++++--- .../chart/line_chart/line_chart_painter.dart | 32 +++++++- lib/src/utils/canvas_wrapper.dart | 3 +- 4 files changed, 119 insertions(+), 18 deletions(-) diff --git a/example/lib/presentation/samples/line/line_chart_sample2.dart b/example/lib/presentation/samples/line/line_chart_sample2.dart index e2ee12f8a..96733e871 100644 --- a/example/lib/presentation/samples/line/line_chart_sample2.dart +++ b/example/lib/presentation/samples/line/line_chart_sample2.dart @@ -171,37 +171,44 @@ class _LineChartSample2State extends State { FlSpot( 0, 3, - yError: FlErrorRange.symmetric(5), + yError: FlErrorRange.symmetric(1.0), + xError: FlErrorRange.symmetric(1.0), ), FlSpot( 2.6, 2, - yError: FlErrorRange.symmetric(5), + yError: FlErrorRange.symmetric(1.0), + xError: FlErrorRange.symmetric(1.0), ), FlSpot( 4.9, 5, - yError: FlErrorRange.symmetric(5), + yError: FlErrorRange.symmetric(1.0), + xError: FlErrorRange.symmetric(1.0), ), FlSpot( 6.8, 3.1, - yError: FlErrorRange.symmetric(5), + yError: FlErrorRange.symmetric(1.0), + xError: FlErrorRange.symmetric(1.0), ), FlSpot( 8, 4, - yError: FlErrorRange.symmetric(5), + yError: FlErrorRange.symmetric(1.0), + xError: FlErrorRange.symmetric(1.0), ), FlSpot( 9.5, 3, - yError: FlErrorRange.symmetric(5), + yError: FlErrorRange.symmetric(1.0), + xError: FlErrorRange.symmetric(1.0), ), FlSpot( 11, 4, - yError: FlErrorRange.symmetric(5), + yError: FlErrorRange.symmetric(1.0), + xError: FlErrorRange.symmetric(1.0), ), ], isCurved: true, diff --git a/lib/src/chart/base/axis_chart/axis_chart_data.dart b/lib/src/chart/base/axis_chart/axis_chart_data.dart index eb8a5fae8..6870240db 100644 --- a/lib/src/chart/base/axis_chart/axis_chart_data.dart +++ b/lib/src/chart/base/axis_chart/axis_chart_data.dart @@ -1721,6 +1721,7 @@ abstract class FlSpotErrorRangePainter with EquatableMixin { Canvas canvas, Offset offsetInCanvas, FlSpot origin, + Rect errorRelativeRect, ); Size getSize(FlSpot spot); @@ -1735,18 +1736,80 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { const FlSimpleErrorPainter(); @override - void draw(Canvas canvas, Offset offsetInCanvas, FlSpot origin) { - print('Drawing error indicator at $offsetInCanvas'); - final lineFrom = Offset(offsetInCanvas.dx, offsetInCanvas.dy - 10); - final lineTo = Offset(offsetInCanvas.dx, offsetInCanvas.dy + 10); + void draw( + Canvas canvas, + Offset offsetInCanvas, + FlSpot origin, + Rect errorRelativeRect, + ) { + final rect = errorRelativeRect.shift(offsetInCanvas); + + final hasVerticalError = errorRelativeRect.width != 0; + if (hasVerticalError) { + _drawDirectErrorLine(canvas, rect.topCenter, rect.bottomCenter); + } + + final hasHorizontalError = errorRelativeRect.height != 0; + if (hasHorizontalError) { + _drawDirectErrorLine(canvas, rect.centerLeft, rect.centerRight); + } + } + + void _drawDirectErrorLine(Canvas canvas, Offset from, Offset to) { canvas.drawLine( - lineFrom, - lineTo, + from, + to, Paint() - ..color = Colors.red - ..style = PaintingStyle.stroke - ..strokeWidth = 2, + ..color = Colors.white + ..strokeWidth = 1 + ..style = PaintingStyle.stroke, ); + + // Draw edge lines + const edgeLength = 8.0; + if (from.dx == to.dx) { + // Line is vertical + canvas + // draw top edge + ..drawLine( + Offset(from.dx - (edgeLength / 2), from.dy), + Offset(from.dx + (edgeLength / 2), from.dy), + Paint() + ..color = Colors.white + ..strokeWidth = 1 + ..style = PaintingStyle.stroke, + ) + // draw bottom edge + ..drawLine( + Offset(to.dx - (edgeLength / 2), to.dy), + Offset(to.dx + (edgeLength / 2), to.dy), + Paint() + ..color = Colors.white + ..strokeWidth = 1 + ..style = PaintingStyle.stroke, + ); + } else { + // // Line is horizontal + canvas + // draw left edge + ..drawLine( + Offset(from.dx, from.dy - (edgeLength / 2)), + Offset(from.dx, from.dy + (edgeLength / 2)), + Paint() + ..color = Colors.white + ..strokeWidth = 1 + ..style = PaintingStyle.stroke, + ) + // draw right edge + ..drawLine( + Offset(to.dx, to.dy - (edgeLength / 2)), + Offset(to.dx, to.dy + (edgeLength / 2)), + Paint() + ..color = Colors.white + ..strokeWidth = 1 + ..style = PaintingStyle.stroke, + ); + } } @override diff --git a/lib/src/chart/line_chart/line_chart_painter.dart b/lib/src/chart/line_chart/line_chart_painter.dart index fb7e89c39..b20bef628 100644 --- a/lib/src/chart/line_chart/line_chart_painter.dart +++ b/lib/src/chart/line_chart/line_chart_painter.dart @@ -391,8 +391,38 @@ class LineChartPainter extends AxisChartPainter { if (spot.isNotNull()) { final x = getPixelX(spot.x, viewSize, holder); final y = getPixelY(spot.y, viewSize, holder); + if (spot.xError == null && spot.yError == null) { + continue; + } + + var left = 0.0; + var right = 0.0; + if (spot.xError != null) { + left = getPixelX(spot.x - spot.xError!.lowerBy, viewSize, holder) - x; + right = + getPixelX(spot.x + spot.xError!.upperBy, viewSize, holder) - x; + } + + var top = 0.0; + var bottom = 0.0; + if (spot.yError != null) { + top = getPixelY(spot.y + spot.yError!.lowerBy, viewSize, holder) - y; + bottom = + getPixelY(spot.y - spot.yError!.upperBy, viewSize, holder) - y; + } + final relativeErrorPixelsRect = Rect.fromLTRB( + left, + top, + right, + bottom, + ); final painter = errorIndicatorData.errorPainter; - canvasWrapper.drawErrorIndicator(painter, spot, Offset(x, y)); + canvasWrapper.drawErrorIndicator( + painter, + spot, + Offset(x, y), + relativeErrorPixelsRect, + ); } } } diff --git a/lib/src/utils/canvas_wrapper.dart b/lib/src/utils/canvas_wrapper.dart index 586d79ae0..0d0074cbb 100644 --- a/lib/src/utils/canvas_wrapper.dart +++ b/lib/src/utils/canvas_wrapper.dart @@ -123,8 +123,9 @@ class CanvasWrapper { FlSpotErrorRangePainter painter, FlSpot origin, Offset offset, + Rect errorRelativeRect, ) { - painter.draw(canvas, offset, origin); + painter.draw(canvas, offset, origin, errorRelativeRect); } /// Handles performing multiple draw actions rotated. From ff4d684adb20d98bf43f8bdc124421ee29aa99c6 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 9 Jan 2025 00:59:25 +0100 Subject: [PATCH 04/27] Fix non-symmetric error indicator draw functionality --- .../samples/line/line_chart_sample2.dart | 42 ++++++---- .../base/axis_chart/axis_chart_data.dart | 76 ++++++++++++------- .../chart/line_chart/line_chart_painter.dart | 7 +- 3 files changed, 81 insertions(+), 44 deletions(-) diff --git a/example/lib/presentation/samples/line/line_chart_sample2.dart b/example/lib/presentation/samples/line/line_chart_sample2.dart index 96733e871..0628b0476 100644 --- a/example/lib/presentation/samples/line/line_chart_sample2.dart +++ b/example/lib/presentation/samples/line/line_chart_sample2.dart @@ -171,44 +171,58 @@ class _LineChartSample2State extends State { FlSpot( 0, 3, - yError: FlErrorRange.symmetric(1.0), - xError: FlErrorRange.symmetric(1.0), + yError: FlErrorRange( + upperBy: 0.5, + lowerBy: 0.5, + ), ), FlSpot( 2.6, 2, - yError: FlErrorRange.symmetric(1.0), - xError: FlErrorRange.symmetric(1.0), + yError: FlErrorRange( + upperBy: 0.5, + lowerBy: 0.5, + ), ), FlSpot( 4.9, 5, - yError: FlErrorRange.symmetric(1.0), - xError: FlErrorRange.symmetric(1.0), + yError: FlErrorRange( + upperBy: 0.5, + lowerBy: 0.5, + ), ), FlSpot( 6.8, 3.1, - yError: FlErrorRange.symmetric(1.0), - xError: FlErrorRange.symmetric(1.0), + yError: FlErrorRange( + upperBy: 0.5, + lowerBy: 0.5, + ), ), FlSpot( 8, 4, - yError: FlErrorRange.symmetric(1.0), - xError: FlErrorRange.symmetric(1.0), + yError: FlErrorRange( + upperBy: 0.5, + lowerBy: 0.5, + ), ), FlSpot( 9.5, 3, - yError: FlErrorRange.symmetric(1.0), - xError: FlErrorRange.symmetric(1.0), + yError: FlErrorRange( + upperBy: 0.5, + lowerBy: 0.5, + ), ), FlSpot( 11, 4, - yError: FlErrorRange.symmetric(1.0), - xError: FlErrorRange.symmetric(1.0), + yError: FlErrorRange( + upperBy: 0.5, + lowerBy: 0.5, + ), ), ], isCurved: true, diff --git a/lib/src/chart/base/axis_chart/axis_chart_data.dart b/lib/src/chart/base/axis_chart/axis_chart_data.dart index 6870240db..97871aa10 100644 --- a/lib/src/chart/base/axis_chart/axis_chart_data.dart +++ b/lib/src/chart/base/axis_chart/axis_chart_data.dart @@ -1691,11 +1691,11 @@ class FlDotCrossPainter extends FlDotPainter { class FlErrorIndicatorData with EquatableMixin { const FlErrorIndicatorData({ this.show = false, - this.errorPainter = const FlSimpleErrorPainter(), + this.errorPainter = _defaultGetSpotRangeErrorPainter, }); final bool show; - final FlSpotErrorRangePainter errorPainter; + final GetSpotRangeErrorPainter errorPainter; static FlErrorIndicatorData lerp( FlErrorIndicatorData a, @@ -1704,7 +1704,7 @@ class FlErrorIndicatorData with EquatableMixin { ) => FlErrorIndicatorData( show: b.show, - errorPainter: b.errorPainter.lerp(a.errorPainter, b.errorPainter, t), + errorPainter: b.errorPainter, ); @override @@ -1714,6 +1714,19 @@ class FlErrorIndicatorData with EquatableMixin { ]; } +typedef GetSpotRangeErrorPainter = FlSpotErrorRangePainter Function( + FlSpot spot, + LineChartBarData bar, + int spotIndex, +); + +FlSpotErrorRangePainter _defaultGetSpotRangeErrorPainter( + FlSpot spot, + LineChartBarData bar, + int spotIndex, +) => + FlSimpleErrorPainter(); + abstract class FlSpotErrorRangePainter with EquatableMixin { const FlSpotErrorRangePainter(); @@ -1733,7 +1746,20 @@ abstract class FlSpotErrorRangePainter with EquatableMixin { } class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { - const FlSimpleErrorPainter(); + FlSimpleErrorPainter({ + this.lineColor = Colors.white, + this.lineWidth = 1.0, + }) { + _linePaint = Paint() + ..color = Colors.white + ..strokeWidth = lineWidth + ..style = PaintingStyle.stroke; + } + + final Color lineColor; + final double lineWidth; + + late final Paint _linePaint; @override void draw( @@ -1743,15 +1769,22 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { Rect errorRelativeRect, ) { final rect = errorRelativeRect.shift(offsetInCanvas); - - final hasVerticalError = errorRelativeRect.width != 0; + final hasVerticalError = errorRelativeRect.height != 0; if (hasVerticalError) { - _drawDirectErrorLine(canvas, rect.topCenter, rect.bottomCenter); + _drawDirectErrorLine( + canvas, + Offset(offsetInCanvas.dx, rect.top), + Offset(offsetInCanvas.dx, rect.bottom), + ); } - final hasHorizontalError = errorRelativeRect.height != 0; + final hasHorizontalError = errorRelativeRect.width != 0; if (hasHorizontalError) { - _drawDirectErrorLine(canvas, rect.centerLeft, rect.centerRight); + _drawDirectErrorLine( + canvas, + Offset(rect.left, offsetInCanvas.dy), + Offset(rect.right, offsetInCanvas.dy), + ); } } @@ -1759,10 +1792,7 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { canvas.drawLine( from, to, - Paint() - ..color = Colors.white - ..strokeWidth = 1 - ..style = PaintingStyle.stroke, + _linePaint, ); // Draw edge lines @@ -1774,19 +1804,13 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { ..drawLine( Offset(from.dx - (edgeLength / 2), from.dy), Offset(from.dx + (edgeLength / 2), from.dy), - Paint() - ..color = Colors.white - ..strokeWidth = 1 - ..style = PaintingStyle.stroke, + _linePaint, ) // draw bottom edge ..drawLine( Offset(to.dx - (edgeLength / 2), to.dy), Offset(to.dx + (edgeLength / 2), to.dy), - Paint() - ..color = Colors.white - ..strokeWidth = 1 - ..style = PaintingStyle.stroke, + _linePaint, ); } else { // // Line is horizontal @@ -1795,19 +1819,13 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { ..drawLine( Offset(from.dx, from.dy - (edgeLength / 2)), Offset(from.dx, from.dy + (edgeLength / 2)), - Paint() - ..color = Colors.white - ..strokeWidth = 1 - ..style = PaintingStyle.stroke, + _linePaint, ) // draw right edge ..drawLine( Offset(to.dx, to.dy - (edgeLength / 2)), Offset(to.dx, to.dy + (edgeLength / 2)), - Paint() - ..color = Colors.white - ..strokeWidth = 1 - ..style = PaintingStyle.stroke, + _linePaint, ); } } diff --git a/lib/src/chart/line_chart/line_chart_painter.dart b/lib/src/chart/line_chart/line_chart_painter.dart index b20bef628..98755d458 100644 --- a/lib/src/chart/line_chart/line_chart_painter.dart +++ b/lib/src/chart/line_chart/line_chart_painter.dart @@ -416,7 +416,12 @@ class LineChartPainter extends AxisChartPainter { right, bottom, ); - final painter = errorIndicatorData.errorPainter; + + final painter = errorIndicatorData.errorPainter( + spot, + barData, + i, + ); canvasWrapper.drawErrorIndicator( painter, spot, From c135ce7c3f95478e41757d4f49125ac16d98fde8 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 9 Jan 2025 01:09:47 +0100 Subject: [PATCH 05/27] Move the errorIndicatorData property to the line objects (instead of lineChart's root) --- .../samples/line/line_chart_sample2.dart | 15 ++++++++++--- lib/src/chart/bar_chart/bar_chart_data.dart | 9 -------- .../base/axis_chart/axis_chart_data.dart | 14 +++++-------- lib/src/chart/line_chart/line_chart_data.dart | 21 +++++++++++-------- .../chart/line_chart/line_chart_painter.dart | 4 ++-- .../scatter_chart/scatter_chart_data.dart | 9 -------- 6 files changed, 31 insertions(+), 41 deletions(-) diff --git a/example/lib/presentation/samples/line/line_chart_sample2.dart b/example/lib/presentation/samples/line/line_chart_sample2.dart index 0628b0476..ffb4a6444 100644 --- a/example/lib/presentation/samples/line/line_chart_sample2.dart +++ b/example/lib/presentation/samples/line/line_chart_sample2.dart @@ -162,9 +162,6 @@ class _LineChartSample2State extends State { maxX: 11, minY: 0, maxY: 6, - errorIndicatorData: const FlErrorIndicatorData( - show: true, - ), lineBarsData: [ LineChartBarData( spots: const [ @@ -234,6 +231,18 @@ class _LineChartSample2State extends State { dotData: const FlDotData( show: false, ), + errorIndicatorData: FlErrorIndicatorData( + show: true, + painter: ( + FlSpot spot, + LineChartBarData bar, + int spotIndex, + ) => FlSimpleErrorPainter( + lineColor: + spotIndex % 2 == 0 ? Colors.greenAccent : Colors.blue, + lineWidth: 1, + ), + ), belowBarData: BarAreaData( show: true, gradient: LinearGradient( diff --git a/lib/src/chart/bar_chart/bar_chart_data.dart b/lib/src/chart/bar_chart/bar_chart_data.dart index e4d04761b..eadf35ae4 100644 --- a/lib/src/chart/bar_chart/bar_chart_data.dart +++ b/lib/src/chart/bar_chart/bar_chart_data.dart @@ -48,7 +48,6 @@ class BarChartData extends AxisChartData with EquatableMixin { super.backgroundColor, ExtraLinesData? extraLinesData, super.rotationQuarterTurns, - super.errorIndicatorData, }) : barGroups = barGroups ?? const [], groupsSpace = groupsSpace ?? 16, alignment = alignment ?? BarChartAlignment.spaceEvenly, @@ -97,7 +96,6 @@ class BarChartData extends AxisChartData with EquatableMixin { Color? backgroundColor, ExtraLinesData? extraLinesData, int? rotationQuarterTurns, - FlErrorIndicatorData? errorIndicatorData, }) => BarChartData( barGroups: barGroups ?? this.barGroups, @@ -114,7 +112,6 @@ class BarChartData extends AxisChartData with EquatableMixin { backgroundColor: backgroundColor ?? this.backgroundColor, extraLinesData: extraLinesData ?? this.extraLinesData, rotationQuarterTurns: rotationQuarterTurns ?? this.rotationQuarterTurns, - errorIndicatorData: errorIndicatorData ?? this.errorIndicatorData, ); /// Lerps a [BaseChartData] based on [t] value, check [Tween.lerp]. @@ -138,11 +135,6 @@ class BarChartData extends AxisChartData with EquatableMixin { extraLinesData: ExtraLinesData.lerp(a.extraLinesData, b.extraLinesData, t), rotationQuarterTurns: b.rotationQuarterTurns, - errorIndicatorData: FlErrorIndicatorData.lerp( - a.errorIndicatorData, - b.errorIndicatorData, - t, - ), ); } else { throw Exception('Illegal State'); @@ -166,7 +158,6 @@ class BarChartData extends AxisChartData with EquatableMixin { backgroundColor, extraLinesData, rotationQuarterTurns, - errorIndicatorData, ]; } diff --git a/lib/src/chart/base/axis_chart/axis_chart_data.dart b/lib/src/chart/base/axis_chart/axis_chart_data.dart index 97871aa10..732484450 100644 --- a/lib/src/chart/base/axis_chart/axis_chart_data.dart +++ b/lib/src/chart/base/axis_chart/axis_chart_data.dart @@ -30,7 +30,6 @@ abstract class AxisChartData extends BaseChartData with EquatableMixin { required super.touchData, ExtraLinesData? extraLinesData, this.rotationQuarterTurns = 0, - this.errorIndicatorData = const FlErrorIndicatorData(), }) : gridData = gridData ?? const FlGridData(), rangeAnnotations = rangeAnnotations ?? const RangeAnnotations(), baselineX = baselineX ?? 0, @@ -67,8 +66,6 @@ abstract class AxisChartData extends BaseChartData with EquatableMixin { /// Rotates the chart by 90 degrees clockwise in each turn final int rotationQuarterTurns; - final FlErrorIndicatorData errorIndicatorData; - /// Used for equality check, see [EquatableMixin]. @override List get props => [ @@ -87,7 +84,6 @@ abstract class AxisChartData extends BaseChartData with EquatableMixin { touchData, extraLinesData, rotationQuarterTurns, - errorIndicatorData, ]; } @@ -1691,11 +1687,11 @@ class FlDotCrossPainter extends FlDotPainter { class FlErrorIndicatorData with EquatableMixin { const FlErrorIndicatorData({ this.show = false, - this.errorPainter = _defaultGetSpotRangeErrorPainter, + this.painter = _defaultGetSpotRangeErrorPainter, }); final bool show; - final GetSpotRangeErrorPainter errorPainter; + final GetSpotRangeErrorPainter painter; static FlErrorIndicatorData lerp( FlErrorIndicatorData a, @@ -1704,13 +1700,13 @@ class FlErrorIndicatorData with EquatableMixin { ) => FlErrorIndicatorData( show: b.show, - errorPainter: b.errorPainter, + painter: b.painter, ); @override List get props => [ show, - errorPainter, + painter, ]; } @@ -1751,7 +1747,7 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { this.lineWidth = 1.0, }) { _linePaint = Paint() - ..color = Colors.white + ..color = lineColor ..strokeWidth = lineWidth ..style = PaintingStyle.stroke; } diff --git a/lib/src/chart/line_chart/line_chart_data.dart b/lib/src/chart/line_chart/line_chart_data.dart index 1d01553b3..28683459f 100644 --- a/lib/src/chart/line_chart/line_chart_data.dart +++ b/lib/src/chart/line_chart/line_chart_data.dart @@ -59,7 +59,6 @@ class LineChartData extends AxisChartData with EquatableMixin { super.clipData = const FlClipData.none(), super.backgroundColor, super.rotationQuarterTurns, - super.errorIndicatorData, }) : super( touchData: lineTouchData, minX: minX ?? double.nan, @@ -112,11 +111,6 @@ class LineChartData extends AxisChartData with EquatableMixin { lineTouchData: b.lineTouchData, showingTooltipIndicators: b.showingTooltipIndicators, rotationQuarterTurns: b.rotationQuarterTurns, - errorIndicatorData: FlErrorIndicatorData.lerp( - a.errorIndicatorData, - b.errorIndicatorData, - t, - ), ); } else { throw Exception('Illegal State'); @@ -144,7 +138,6 @@ class LineChartData extends AxisChartData with EquatableMixin { FlClipData? clipData, Color? backgroundColor, int? rotationQuarterTurns, - FlErrorIndicatorData? errorIndicatorData, }) => LineChartData( lineBarsData: lineBarsData ?? this.lineBarsData, @@ -166,7 +159,6 @@ class LineChartData extends AxisChartData with EquatableMixin { clipData: clipData ?? this.clipData, backgroundColor: backgroundColor ?? this.backgroundColor, rotationQuarterTurns: rotationQuarterTurns ?? this.rotationQuarterTurns, - errorIndicatorData: errorIndicatorData ?? this.errorIndicatorData, ); /// Used for equality check, see [EquatableMixin]. @@ -190,7 +182,6 @@ class LineChartData extends AxisChartData with EquatableMixin { clipData, backgroundColor, rotationQuarterTurns, - errorIndicatorData, ]; } @@ -252,6 +243,7 @@ class LineChartBarData with EquatableMixin { BarAreaData? belowBarData, BarAreaData? aboveBarData, this.dotData = const FlDotData(), + this.errorIndicatorData = const FlErrorIndicatorData(), this.showingIndicators = const [], this.dashArray, this.shadow = const Shadow(color: Colors.transparent), @@ -364,6 +356,9 @@ class LineChartBarData with EquatableMixin { /// Responsible to showing [spots] on the line as a circular point. final FlDotData dotData; + /// Holds data for showing error indicators on the spots in this line. + final FlErrorIndicatorData errorIndicatorData; + /// Show indicators based on provided indexes final List showingIndicators; @@ -401,6 +396,11 @@ class LineChartBarData with EquatableMixin { t, )!, dotData: FlDotData.lerp(a.dotData, b.dotData, t), + errorIndicatorData: FlErrorIndicatorData.lerp( + a.errorIndicatorData, + b.errorIndicatorData, + t, + ), dashArray: lerpIntList(a.dashArray, b.dashArray, t), color: Color.lerp(a.color, b.color, t), gradient: Gradient.lerp(a.gradient, b.gradient, t), @@ -429,6 +429,7 @@ class LineChartBarData with EquatableMixin { BarAreaData? belowBarData, BarAreaData? aboveBarData, FlDotData? dotData, + FlErrorIndicatorData? errorIndicatorData, List? dashArray, List? showingIndicators, Shadow? shadow, @@ -453,6 +454,7 @@ class LineChartBarData with EquatableMixin { aboveBarData: aboveBarData ?? this.aboveBarData, dashArray: dashArray ?? this.dashArray, dotData: dotData ?? this.dotData, + errorIndicatorData: errorIndicatorData ?? this.errorIndicatorData, showingIndicators: showingIndicators ?? this.showingIndicators, shadow: shadow ?? this.shadow, isStepLineChart: isStepLineChart ?? this.isStepLineChart, @@ -476,6 +478,7 @@ class LineChartBarData with EquatableMixin { belowBarData, aboveBarData, dotData, + errorIndicatorData, showingIndicators, dashArray, shadow, diff --git a/lib/src/chart/line_chart/line_chart_painter.dart b/lib/src/chart/line_chart/line_chart_painter.dart index 98755d458..9a6df14e9 100644 --- a/lib/src/chart/line_chart/line_chart_painter.dart +++ b/lib/src/chart/line_chart/line_chart_painter.dart @@ -160,7 +160,7 @@ class LineChartPainter extends AxisChartPainter { drawErrorIndicatorData( canvasWrapper, barData, - data.errorIndicatorData, + barData.errorIndicatorData, holder, ); } @@ -417,7 +417,7 @@ class LineChartPainter extends AxisChartPainter { bottom, ); - final painter = errorIndicatorData.errorPainter( + final painter = errorIndicatorData.painter( spot, barData, i, diff --git a/lib/src/chart/scatter_chart/scatter_chart_data.dart b/lib/src/chart/scatter_chart/scatter_chart_data.dart index 8dd48403a..920d7ef63 100644 --- a/lib/src/chart/scatter_chart/scatter_chart_data.dart +++ b/lib/src/chart/scatter_chart/scatter_chart_data.dart @@ -50,7 +50,6 @@ class ScatterChartData extends AxisChartData with EquatableMixin { super.backgroundColor, ScatterLabelSettings? scatterLabelSettings, super.rotationQuarterTurns, - super.errorIndicatorData, }) : scatterSpots = scatterSpots ?? const [], scatterTouchData = scatterTouchData ?? ScatterTouchData(), showingTooltipIndicators = showingTooltipIndicators ?? const [], @@ -119,11 +118,6 @@ class ScatterChartData extends AxisChartData with EquatableMixin { t, ), rotationQuarterTurns: b.rotationQuarterTurns, - errorIndicatorData: FlErrorIndicatorData.lerp( - a.errorIndicatorData, - b.errorIndicatorData, - t, - ), ); } else { throw Exception('Illegal State'); @@ -149,7 +143,6 @@ class ScatterChartData extends AxisChartData with EquatableMixin { Color? backgroundColor, ScatterLabelSettings? scatterLabelSettings, int? rotationQuarterTurns, - FlErrorIndicatorData? errorIndicatorData, }) => ScatterChartData( scatterSpots: scatterSpots ?? this.scatterSpots, @@ -169,7 +162,6 @@ class ScatterChartData extends AxisChartData with EquatableMixin { backgroundColor: backgroundColor ?? this.backgroundColor, scatterLabelSettings: scatterLabelSettings ?? this.scatterLabelSettings, rotationQuarterTurns: rotationQuarterTurns ?? this.rotationQuarterTurns, - errorIndicatorData: errorIndicatorData ?? this.errorIndicatorData, ); /// Used for equality check, see [EquatableMixin]. @@ -194,7 +186,6 @@ class ScatterChartData extends AxisChartData with EquatableMixin { borderData, touchData, rotationQuarterTurns, - errorIndicatorData, ]; } From addafb8804c73ff830e544a20f856f3727693660 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 9 Jan 2025 01:17:10 +0100 Subject: [PATCH 06/27] Simplify the error indicator painter --- .../base/axis_chart/axis_chart_data.dart | 57 ++++++------------- 1 file changed, 18 insertions(+), 39 deletions(-) diff --git a/lib/src/chart/base/axis_chart/axis_chart_data.dart b/lib/src/chart/base/axis_chart/axis_chart_data.dart index 732484450..1cfe8f493 100644 --- a/lib/src/chart/base/axis_chart/axis_chart_data.dart +++ b/lib/src/chart/base/axis_chart/axis_chart_data.dart @@ -1732,19 +1732,13 @@ abstract class FlSpotErrorRangePainter with EquatableMixin { FlSpot origin, Rect errorRelativeRect, ); - - Size getSize(FlSpot spot); - - Color get mainColor; - - FlSpotErrorRangePainter lerp( - FlSpotErrorRangePainter a, FlSpotErrorRangePainter b, double t); } class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { FlSimpleErrorPainter({ this.lineColor = Colors.white, - this.lineWidth = 1.0, + this.lineWidth = 2.0, + this.capLength = 8.0, }) { _linePaint = Paint() ..color = lineColor @@ -1754,6 +1748,7 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { final Color lineColor; final double lineWidth; + final double capLength; late final Paint _linePaint; @@ -1792,59 +1787,43 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { ); // Draw edge lines - const edgeLength = 8.0; if (from.dx == to.dx) { // Line is vertical canvas - // draw top edge + // draw top cap ..drawLine( - Offset(from.dx - (edgeLength / 2), from.dy), - Offset(from.dx + (edgeLength / 2), from.dy), + Offset(from.dx - (capLength / 2), from.dy), + Offset(from.dx + (capLength / 2), from.dy), _linePaint, ) - // draw bottom edge + // draw bottom cap ..drawLine( - Offset(to.dx - (edgeLength / 2), to.dy), - Offset(to.dx + (edgeLength / 2), to.dy), + Offset(to.dx - (capLength / 2), to.dy), + Offset(to.dx + (capLength / 2), to.dy), _linePaint, ); } else { // // Line is horizontal canvas - // draw left edge + // draw left cap ..drawLine( - Offset(from.dx, from.dy - (edgeLength / 2)), - Offset(from.dx, from.dy + (edgeLength / 2)), + Offset(from.dx, from.dy - (capLength / 2)), + Offset(from.dx, from.dy + (capLength / 2)), _linePaint, ) - // draw right edge + // draw right cap ..drawLine( - Offset(to.dx, to.dy - (edgeLength / 2)), - Offset(to.dx, to.dy + (edgeLength / 2)), + Offset(to.dx, to.dy - (capLength / 2)), + Offset(to.dx, to.dy + (capLength / 2)), _linePaint, ); } } - @override - Size getSize(FlSpot spot) { - return const Size(10, 10); - } - - @override - FlSpotErrorRangePainter lerp( - FlSpotErrorRangePainter a, - FlSpotErrorRangePainter b, - double t, - ) { - return this; - } - - @override - Color get mainColor => Colors.black; - @override List get props => [ - mainColor, + lineColor, + lineWidth, + capLength, ]; } From 9da7d68c0c9d358b5cad441f27b12c3bc7ccdf63 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 9 Jan 2025 01:18:59 +0100 Subject: [PATCH 07/27] Set the show = true for error indicator lines --- example/lib/presentation/samples/line/line_chart_sample2.dart | 1 - lib/src/chart/base/axis_chart/axis_chart_data.dart | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/example/lib/presentation/samples/line/line_chart_sample2.dart b/example/lib/presentation/samples/line/line_chart_sample2.dart index ffb4a6444..885eb7d5f 100644 --- a/example/lib/presentation/samples/line/line_chart_sample2.dart +++ b/example/lib/presentation/samples/line/line_chart_sample2.dart @@ -232,7 +232,6 @@ class _LineChartSample2State extends State { show: false, ), errorIndicatorData: FlErrorIndicatorData( - show: true, painter: ( FlSpot spot, LineChartBarData bar, diff --git a/lib/src/chart/base/axis_chart/axis_chart_data.dart b/lib/src/chart/base/axis_chart/axis_chart_data.dart index 1cfe8f493..2589fabd7 100644 --- a/lib/src/chart/base/axis_chart/axis_chart_data.dart +++ b/lib/src/chart/base/axis_chart/axis_chart_data.dart @@ -1686,7 +1686,7 @@ class FlDotCrossPainter extends FlDotPainter { class FlErrorIndicatorData with EquatableMixin { const FlErrorIndicatorData({ - this.show = false, + this.show = true, this.painter = _defaultGetSpotRangeErrorPainter, }); @@ -1737,7 +1737,7 @@ abstract class FlSpotErrorRangePainter with EquatableMixin { class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { FlSimpleErrorPainter({ this.lineColor = Colors.white, - this.lineWidth = 2.0, + this.lineWidth = 1.0, this.capLength = 8.0, }) { _linePaint = Paint() From ca5b1bd977bf9c27878a08f4a54abd4a631e9d26 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 9 Jan 2025 01:51:05 +0100 Subject: [PATCH 08/27] Add crossAlignment property to be able to align the error indicator line --- .../base/axis_chart/axis_chart_data.dart | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/lib/src/chart/base/axis_chart/axis_chart_data.dart b/lib/src/chart/base/axis_chart/axis_chart_data.dart index 2589fabd7..2b703c329 100644 --- a/lib/src/chart/base/axis_chart/axis_chart_data.dart +++ b/lib/src/chart/base/axis_chart/axis_chart_data.dart @@ -1739,16 +1739,22 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { this.lineColor = Colors.white, this.lineWidth = 1.0, this.capLength = 8.0, + this.crossAlignment = 0, }) { _linePaint = Paint() ..color = lineColor ..strokeWidth = lineWidth ..style = PaintingStyle.stroke; + assert( + crossAlignment >= -1 && crossAlignment <= 1, + 'crossAlignment must be between -1 (start) and 1 (end)', + ); } final Color lineColor; final double lineWidth; final double capLength; + final double crossAlignment; late final Paint _linePaint; @@ -1780,41 +1786,53 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { } void _drawDirectErrorLine(Canvas canvas, Offset from, Offset to) { + final isLineVertical = from.dx == to.dx; + final mainLineOffset = crossAlignment * capLength; + + if (isLineVertical) { + from = Offset(from.dx + mainLineOffset, from.dy); + to = Offset(to.dx + mainLineOffset, to.dy); + } else { + from = Offset(from.dx, from.dy + mainLineOffset); + to = Offset(to.dx, to.dy + mainLineOffset); + } + canvas.drawLine( from, to, _linePaint, ); + final t = (crossAlignment + 1) / 2; + final end = capLength - lerpDouble(0, capLength, t)!; + final start = capLength - end; // Draw edge lines - if (from.dx == to.dx) { - // Line is vertical + if (isLineVertical) { canvas // draw top cap ..drawLine( - Offset(from.dx - (capLength / 2), from.dy), - Offset(from.dx + (capLength / 2), from.dy), + Offset(from.dx - start, from.dy), + Offset(from.dx + end, from.dy), _linePaint, ) // draw bottom cap ..drawLine( - Offset(to.dx - (capLength / 2), to.dy), - Offset(to.dx + (capLength / 2), to.dy), + Offset(to.dx - start, to.dy), + Offset(to.dx + end, to.dy), _linePaint, ); } else { - // // Line is horizontal canvas // draw left cap ..drawLine( - Offset(from.dx, from.dy - (capLength / 2)), - Offset(from.dx, from.dy + (capLength / 2)), + Offset(from.dx, from.dy - start), + Offset(from.dx, from.dy + end), _linePaint, ) // draw right cap ..drawLine( - Offset(to.dx, to.dy - (capLength / 2)), - Offset(to.dx, to.dy + (capLength / 2)), + Offset(to.dx, to.dy - start), + Offset(to.dx, to.dy + end), _linePaint, ); } From daf6257f8c0f3cf810125282176e3595694bc23e Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 9 Jan 2025 19:16:19 +0100 Subject: [PATCH 09/27] Update line_chart_sample8 colors --- .../samples/line/line_chart_sample8.dart | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/example/lib/presentation/samples/line/line_chart_sample8.dart b/example/lib/presentation/samples/line/line_chart_sample8.dart index ee383a5d1..0a0383b45 100644 --- a/example/lib/presentation/samples/line/line_chart_sample8.dart +++ b/example/lib/presentation/samples/line/line_chart_sample8.dart @@ -239,7 +239,17 @@ class _LineChartSample8State extends State { }).toList(); }, touchTooltipData: LineTouchTooltipData( - getTooltipColor: (touchedSpot) => AppColors.contentColorBlue, + getTooltipColor: (touchedSpot) => AppColors.contentColorRed, + getTooltipItems: (List touchedSpots) => touchedSpots + .map((LineBarSpot touchedSpot) => LineTooltipItem( + touchedSpot.y.toString(), + const TextStyle( + color: AppColors.contentColorWhite, + fontWeight: FontWeight.bold, + fontSize: 16, + ), + )) + .toList(), ), ), borderData: FlBorderData( From fcda4ee8f88acde345099fc1f5feb0d709ae17c0 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Fri, 10 Jan 2025 18:57:29 +0100 Subject: [PATCH 10/27] Add line_chart_sample13 to demonestrate the amsterdam weather with the error indicators --- .../assets/data/amsterdam_2024_weather.csv | 367 +++++++++++++ .../presentation/samples/chart_samples.dart | 2 + .../samples/line/line_chart_sample13.dart | 493 ++++++++++++++++++ .../samples/line/line_chart_sample2.dart | 74 +-- example/lib/util/csv_parser.dart | 45 ++ 5 files changed, 914 insertions(+), 67 deletions(-) create mode 100644 example/assets/data/amsterdam_2024_weather.csv create mode 100644 example/lib/presentation/samples/line/line_chart_sample13.dart create mode 100644 example/lib/util/csv_parser.dart diff --git a/example/assets/data/amsterdam_2024_weather.csv b/example/assets/data/amsterdam_2024_weather.csv new file mode 100644 index 000000000..b4f4f749a --- /dev/null +++ b/example/assets/data/amsterdam_2024_weather.csv @@ -0,0 +1,367 @@ +name,datetime,tempmax,tempmin,temp,feelslikemax,feelslikemin,feelslike,dew,humidity,precip,precipprob,precipcover,preciptype,snow,snowdepth,windgust,windspeed,winddir,sealevelpressure,cloudcover,visibility,solarradiation,solarenergy,uvindex,severerisk,sunrise,sunset,moonphase,conditions,description,icon,stations +"Amsterdam,Netherlands",2024-01-01,9.1,6.4,8,5.3,2.5,4.1,5.1,82.4,14.26,100,37.5,rain,0,0,53.9,40.2,225.9,1000.1,88.7,20.5,20.6,1.8,2,,2024-01-01T08:50:34,2024-01-01T16:37:06,0.68,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-02,12.2,6.6,10.2,12.2,2.7,9,8.8,91.4,17.935,100,66.67,rain,0,0,91,62.5,205.1,987.8,100,12.9,7.4,0.6,1,,2024-01-02T08:50:27,2024-01-02T16:38:10,0.71,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-03,10.5,8.1,9.6,10.5,4.5,7.5,7.7,88,9.238,100,62.5,rain,0,0,106.8,58.1,248.3,987.8,96.3,15.4,10.2,1,1,,2024-01-03T08:50:16,2024-01-03T16:39:18,0.74,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-04,8.5,6.7,7.4,7.1,4,5.6,6.6,94.6,8.205,100,62.5,rain,0,0,28.1,17.7,235.3,1000.4,99.6,22.1,14.3,1.3,1,,2024-01-04T08:50:01,2024-01-04T16:40:29,0.75,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-05,8.5,5.5,7.1,5.7,2.3,4.3,6.1,93.7,8.285,100,58.33,rain,0,0,45,29.9,118.1,996.5,99.9,21.5,5.2,0.6,0,,2024-01-05T08:49:44,2024-01-05T16:41:42,0.8,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-06,5,1.4,3.7,1.2,-3.6,-0.2,1.8,87.9,0.098,100,8.33,rain,0,0,35.2,21.8,11,1011.1,99.3,29.8,9.3,0.8,1,,2024-01-06T08:49:22,2024-01-06T16:42:57,0.84,"Rain, Overcast",Cloudy skies throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-01-07,1.3,-0.7,0.5,-2.9,-5.9,-4.9,-2.7,79.1,0.015,100,4.17,"rain,snow",0,0,48.8,31.7,52.5,1024.9,67.5,39.1,22,1.9,2,,2024-01-07T08:48:58,2024-01-07T16:44:15,0.87,"Snow, Rain, Partially cloudy",Partly cloudy throughout the day with morning rain or snow.,rain,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-08,0.1,-2,-0.8,-5.9,-9.1,-7.2,-5.4,71.7,0,0,0,,0,0,49.5,37.2,63,1032.8,57.5,44.3,22.9,1.8,2,,2024-01-08T08:48:30,2024-01-08T16:45:36,0.9,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-01-09,-0.3,-4.1,-2.3,-6.6,-11.5,-9.1,-8.4,64,0,0,0,,0,0,46.1,30.7,64.6,1034,0,41.4,40,3.4,3,,2024-01-09T08:47:58,2024-01-09T16:46:59,0.93,Clear,Clear conditions throughout the day.,clear-day,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-01-10,0.3,-3.6,-2,-5.4,-9.6,-7.7,-8.4,62.2,0,0,0,,0,0,33.9,24.2,60.6,1031.1,0.1,41.8,39,3.4,2,,2024-01-10T08:47:24,2024-01-10T16:48:24,0.97,Clear,Clear conditions throughout the day.,clear-day,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-01-11,4.7,-5.3,-0.3,3.2,-8.7,-2.6,-2.4,86,0,0,0,,0,0,27.3,10.6,9.4,1034.4,59.7,14.8,13.4,1.1,1,,2024-01-11T08:46:46,2024-01-11T16:49:51,0,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-01-12,5.6,2.3,4,3.9,1,2.4,2.6,90.9,0.01,100,4.17,rain,0,0,31.8,13.7,328.2,1033.1,100,18.5,20.2,1.7,2,,2024-01-12T08:46:05,2024-01-12T16:51:20,0.03,"Rain, Overcast",Cloudy skies throughout the day with late afternoon rain.,rain,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-13,5.9,3.2,4.6,2.1,-0.9,1,3.4,92.3,1.002,100,41.67,rain,0,0,38.6,26.7,265.8,1022.5,99.6,17,10,0.8,1,,2024-01-13T08:45:21,2024-01-13T16:52:51,0.07,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06249099999,C0449,06240099999,06257099999" +"Amsterdam,Netherlands",2024-01-14,5.7,2.7,4.3,2.1,-1.6,0.5,2.5,88,2.747,100,62.5,rain,0,0,42,27.2,275.1,1009.3,95.4,25.6,11.8,1,1,,2024-01-14T08:44:33,2024-01-14T16:54:24,0.1,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-01-15,3.9,1.4,2.5,0.2,-4.4,-2.1,-0.3,81.9,3.366,100,70.83,"rain,snow",0.1,0,60.6,34.4,301,1003.2,69.4,28.2,25,2.1,3,,2024-01-15T08:43:43,2024-01-15T16:55:59,0.14,"Snow, Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain or snow throughout the day.,snow,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-01-16,3,-0.2,1.3,-1.3,-5.6,-3,-1.8,80.5,2.814,100,41.67,"rain,snow",0.1,0.5,49.7,30.3,231,1006.7,88.4,34.2,45.8,3.9,3,,2024-01-16T08:42:50,2024-01-16T16:57:36,0.17,"Snow, Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain or snow throughout the day.,snow,"06260099999,D3248,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-01-17,0.5,-2.1,-0.5,0.2,-7.3,-4,-2.8,84.5,0.129,100,8.33,"rain,snow",0,0.5,31.6,24.3,184.6,993.6,99.8,25.1,18.3,1.6,1,,2024-01-17T08:41:53,2024-01-17T16:59:14,0.21,"Snow, Rain, Overcast",Cloudy skies throughout the day with rain or snow clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-01-18,3.5,-3.4,-0.3,2.9,-6.3,-2.3,-2.5,85.7,0.337,100,8.33,"rain,snow",0,0,24.5,12.9,292.9,1001.5,40.9,34.2,22.9,2.1,2,,2024-01-18T08:40:54,2024-01-18T17:00:53,0.25,"Snow, Rain, Partially cloudy",Partly cloudy throughout the day with morning rain or snow.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-01-19,4.8,-1.3,2,0.9,-4.8,-2.1,-1.1,80.5,0.751,100,33.33,"rain,snow",0.2,0,38.5,23.9,245.2,1018.5,33.8,32.3,47.6,4,3,,2024-01-19T08:39:52,2024-01-19T17:02:34,0.28,"Snow, Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain or snow throughout the day.,snow,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-20,2.2,-0.2,0.9,-3.1,-6.1,-4.5,-2.1,80.8,0,0,0,,0,0,38.9,29.8,201,1025.9,89.7,21.2,30.4,2.6,1,,2024-01-20T08:38:47,2024-01-20T17:04:17,0.31,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-21,7.4,-0.1,3.4,2.2,-5.7,-2,-0.6,76,0.201,100,4.17,rain,0,0,66.7,45.1,189.5,1016.4,99.6,34.2,9.9,0.7,0,,2024-01-21T08:37:40,2024-01-21T17:06:00,0.35,"Rain, Overcast",Cloudy skies throughout the day with late afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-22,11.5,7.6,9.5,11.5,3.2,6.8,6.6,82.3,1.635,100,50,rain,0,0,83.1,55.8,228,1005.8,64.2,16.6,38.5,3.3,3,,2024-01-22T08:36:29,2024-01-22T17:07:45,0.38,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-23,11.5,6.2,8.1,11.5,2.1,4.4,5.3,83,4.604,100,33.33,rain,0,0,82,57.5,230.6,1018.5,71.9,14.7,26.8,2.3,2,,2024-01-23T08:35:16,2024-01-23T17:09:31,0.42,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-01-24,12.2,8.6,10,12.2,4.9,8,6.6,79.2,1.409,100,16.67,rain,0,0,94.2,61.6,247.1,1018.3,78.8,14.1,31.8,2.7,2,,2024-01-24T08:34:01,2024-01-24T17:11:17,0.45,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-25,9.6,3.4,6.9,6.8,0.9,4.2,5.7,92.3,1.425,100,33.33,rain,0,0,38.4,26.8,222.3,1026.6,80.5,8.7,20.9,1.8,2,,2024-01-25T08:32:43,2024-01-25T17:13:05,0.5,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-26,11.4,3.9,8.5,11.4,1.1,5.7,5.8,84,4.101,100,29.17,rain,0,0,68.2,48.4,256.5,1024.2,59.2,18.1,44.4,3.8,4,,2024-01-26T08:31:22,2024-01-26T17:14:54,0.52,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-27,7.9,2,4.2,5.2,-1.7,0.9,2.5,89.1,0.268,100,4.17,rain,0,0,28.1,20.2,207.5,1034.4,56.5,16.7,43.9,3.9,2,,2024-01-27T08:30:00,2024-01-27T17:16:43,0.56,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-28,8.6,0.8,4.2,5.6,-3.3,0.9,0,74.9,0,0,0,,0,0,30.7,20.7,150.7,1027.6,88.2,33,62,5.3,3,,2024-01-28T08:28:34,2024-01-28T17:18:33,0.59,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-29,10.5,3,6.4,10.5,-0.2,3.9,4.1,85.4,0,0,0,,0,0,27.8,16.6,171.7,1025.1,99.7,28.6,39.1,3.4,2,,2024-01-29T08:27:07,2024-01-29T17:20:24,0.62,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-30,10.5,4.7,7.8,10.5,2.8,5,6.7,92.3,0.644,100,20.83,rain,0,0,58.9,34.3,227.3,1026.7,99.9,17.4,13.5,1.2,1,,2024-01-30T08:25:37,2024-01-30T17:22:15,0.65,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-01-31,8.3,5.1,6.5,5.3,2.5,3.4,3.4,81,0.075,100,8.33,rain,0,0,56.2,37.5,221.6,1030.4,100,34.6,12.7,1.1,1,,2024-01-31T08:24:05,2024-01-31T17:24:07,0.69,"Rain, Overcast",Cloudy skies throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-01,9.1,4.4,6.6,5.3,1.3,3.3,4.6,87.4,4.35,100,20.83,rain,0,0,59.4,37,272.7,1029.2,64.5,12.1,56.7,4.9,4,,2024-02-01T08:22:31,2024-02-01T17:25:59,0.72,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06257099999" +"Amsterdam,Netherlands",2024-02-02,9.1,5.9,7.6,5.5,2.4,3.8,6.2,90.6,0,0,0,,0,0,49.7,34.1,237.3,1026.9,99.6,12.7,25,2.1,2,,2024-02-02T08:20:55,2024-02-02T17:27:52,0.75,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06257099999" +"Amsterdam,Netherlands",2024-02-03,10.9,9.1,10,10.9,6,7.7,8.4,89.9,0,0,0,,0,0,54.2,34.1,249.4,1024.4,99.5,23.2,37,3.1,3,,2024-02-03T08:19:17,2024-02-03T17:29:45,0.75,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-04,10.5,8.3,9.7,10.5,5.4,8,8.3,91.1,2.126,100,20.83,rain,0,0,61,38.5,252.3,1020.7,99.9,18.6,13.2,1.1,1,,2024-02-04T08:17:37,2024-02-04T17:31:38,0.82,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-05,10.4,8.7,9.4,10.4,4.6,5.6,7.1,85.8,0.051,100,12.5,rain,0,0,72.5,50.4,240.1,1017.4,99.8,16.7,22.2,2,1,,2024-02-05T08:15:56,2024-02-05T17:33:32,0.85,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,06348099999,06249099999,C0449,06240099999,06257099999" +"Amsterdam,Netherlands",2024-02-06,12,7,10.5,12,3.5,10,7.9,84,4.573,100,25,rain,0,0,82.3,57.4,237.3,1007.6,100,14.3,24.6,2.1,2,,2024-02-06T08:14:12,2024-02-06T17:35:25,0.88,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-07,6.7,1.4,4.8,6.7,1.4,3.2,1.8,82,3.834,100,29.17,rain,0,0,27.8,15.6,345.1,1005.3,100,22.2,46.1,4,3,,2024-02-07T08:12:27,2024-02-07T17:37:19,0.92,"Rain, Overcast",Cloudy skies throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06257099999" +"Amsterdam,Netherlands",2024-02-08,4,0.5,2.4,1.7,-2.7,-0.3,1.6,94.4,8.38,100,45.83,rain,0.4,0,42.8,24.9,92.6,997.7,99.6,11.9,13.1,1.2,1,,2024-02-08T08:10:39,2024-02-08T17:39:13,0.95,"Rain, Overcast",Cloudy skies throughout the day with rain or snow.,snow,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06257099999" +"Amsterdam,Netherlands",2024-02-09,12.2,4.9,10.3,12.2,2,9.1,8.7,90.6,12.645,100,54.17,rain,0,0,44.9,27.6,176.5,983.4,99.8,25.9,20.9,1.7,1,,2024-02-09T08:08:51,2024-02-09T17:41:07,0,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-10,11.9,9.4,10.4,11.9,7.3,9.6,8.9,90.6,0.454,100,12.5,rain,0,0,24.3,17.2,137.6,985.9,99.4,31.1,37.3,3.3,2,,2024-02-10T08:07:00,2024-02-10T17:43:01,0.02,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-11,10,7.9,8.9,8.7,5.2,6.9,8.1,94.4,3.279,100,54.17,rain,0,0,31.9,20.8,211.1,989.7,99.9,10.5,22.8,2,2,,2024-02-11T08:05:08,2024-02-11T17:44:55,0.05,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-12,8.9,3.7,7,7,0.5,4.2,5.4,90.2,0.591,100,20.83,rain,0,0,38,26.6,246,1003.4,76.5,21.8,57.4,4.9,4,,2024-02-12T08:03:15,2024-02-12T17:46:49,0.09,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-13,9.1,3.8,6.6,6,0.5,3.1,4.6,87,0.083,100,16.67,rain,0,0,39.1,27.7,200.4,1014.3,95.5,24.5,41.9,3.5,3,,2024-02-13T08:01:20,2024-02-13T17:48:43,0.12,"Rain, Overcast",Cloudy skies throughout the day with late afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-14,11.7,8,10.6,11.7,4.2,9.9,10.1,96.6,11.723,100,70.83,rain,0,0,49.8,34.4,224.9,1013.4,100,8.9,13.6,1.2,1,,2024-02-14T07:59:23,2024-02-14T17:50:36,0.15,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-15,15.6,11.2,12.8,15.6,11.2,12.8,11.3,90.8,6.248,100,37.5,rain,0,0,31.9,23.2,180.4,1012.6,99.2,23.2,31.5,2.8,2,,2024-02-15T07:57:26,2024-02-15T17:52:30,0.19,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-16,12,9.2,10.7,12,7.2,10.3,9,89.9,2.067,100,20.83,rain,0,0,33,23.6,228.8,1012.9,97.4,28.2,21,1.8,1,,2024-02-16T07:55:26,2024-02-16T17:54:23,0.25,"Rain, Overcast",Cloudy skies throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-17,11.4,7.9,9.8,11.4,6.2,9.1,8.4,91.4,0.415,100,12.5,rain,0,0,23.8,16.8,228.3,1029.2,99.2,20.9,35.3,3,2,,2024-02-17T07:53:26,2024-02-17T17:56:17,0.26,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-18,10.4,8.4,9.4,10.4,4.6,6.9,8.6,94.5,16.3,100,79.17,rain,0,0,56.4,35,225.4,1023.8,100,12.1,10.5,0.8,1,,2024-02-18T07:51:24,2024-02-18T17:58:10,0.29,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-19,10.4,5.7,8.7,10.4,3.4,6.2,7.4,92,4.968,100,25,rain,0,0,44.6,33.1,269.7,1026,95,14.2,23.8,2,1,,2024-02-19T07:49:22,2024-02-19T18:00:03,0.33,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-20,10.4,5.1,8.3,10.4,2.6,5.6,6.7,90,0.207,100,4.17,rain,0,0,51.2,33.9,231.7,1025.6,99.7,13.7,43.3,3.7,2,,2024-02-20T07:47:18,2024-02-20T18:01:55,0.36,"Rain, Overcast",Cloudy skies throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-21,10.1,8.7,9.3,10.1,4.8,5.9,7.7,90,5.415,100,37.5,rain,0,0,49.7,37.4,203.7,1011.3,100,15.3,23,1.9,2,,2024-02-21T07:45:13,2024-02-21T18:03:48,0.39,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-22,12.5,5.2,9.9,12.5,-0.5,8.1,8.9,93.8,6.403,100,58.33,rain,0,0,67.7,49.2,208.2,986.4,98.1,13.7,27,2.3,1,,2024-02-22T07:43:07,2024-02-22T18:05:40,0.43,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06257099999" +"Amsterdam,Netherlands",2024-02-23,8.2,4.9,6.2,4.6,-0.8,1.8,3.4,82.3,6.364,100,66.67,rain,0,0,69.8,41.3,209.9,988.7,94.9,32.8,34.5,3,3,,2024-02-23T07:40:59,2024-02-23T18:07:32,0.46,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-24,6.2,2.7,4.7,3.3,-0.8,1.4,3.2,89.8,4.341,100,29.17,rain,0,0,38.4,27.8,184.4,996.8,96.7,29.3,34.1,3,1,,2024-02-24T07:38:51,2024-02-24T18:09:23,0.5,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-25,8.9,4.1,6.2,8.9,1.4,3.6,4.2,87.5,4.063,100,29.17,rain,0,0,36.7,17.6,164.3,999.5,94.9,26.3,44.7,4,3,,2024-02-25T07:36:42,2024-02-25T18:11:15,0.53,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-26,6.5,4.6,5.5,2.5,-0.1,1,3,83.9,0.122,100,29.17,rain,0,0,56.3,34.6,41,1006.5,91.3,36.3,37.9,3.3,2,,2024-02-26T07:34:32,2024-02-26T18:13:06,0.57,"Rain, Overcast",Cloudy skies throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-27,8.1,1.7,4.7,7,-0.8,2.3,1.8,82.1,0.05,100,4.17,rain,0,0,44.8,20.9,22.1,1018.7,55.9,33.1,85.5,7.3,5,,2024-02-27T07:32:22,2024-02-27T18:14:56,0.6,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-02-28,9.4,2.8,6.9,6.6,0,4.1,5.4,90.2,0,0,0,,0,0,37.1,23.9,190.2,1019.2,91.5,15.6,29.1,2.5,2,,2024-02-28T07:30:10,2024-02-28T18:16:47,0.63,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-02-29,9.1,7,8.3,5.9,3.4,4.9,7.6,95.7,4.966,100,79.17,rain,0,0,35.8,25.3,174.3,1008,100,10,15.8,1.5,1,,2024-02-29T07:27:58,2024-02-29T18:18:37,0.67,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-01,9.2,5.1,7.6,6.5,2,4.2,5.4,86,2.291,100,33.33,rain,0,0,57.5,37.6,171.4,999.9,80.7,28.5,55.7,4.8,3,,2024-03-01T07:25:45,2024-03-01T18:20:27,0.7,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-03-02,11.5,5.4,8.9,11.5,1.9,6.8,4.2,73.6,0.755,100,20.83,rain,0,0,49.4,37.1,150.7,998.6,72.6,39.8,98.6,8.4,5,,2024-03-02T07:23:31,2024-03-02T18:22:17,0.73,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-03,14.3,7.8,10.6,14.3,5,9.6,6.6,77,0,0,0,,0,0,36.1,21.5,143.2,1001.1,99.5,32,76.7,6.6,4,,2024-03-03T07:21:16,2024-03-03T18:24:06,0.75,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-04,10.4,4.2,7.5,10.4,1.9,5.6,4.2,81,0,0,0,,0,0,33.7,23.8,306.9,1011.1,98.3,35.7,88.3,7.7,5,,2024-03-04T07:19:01,2024-03-04T18:25:55,0.8,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-05,8.2,2.9,6,8.1,1,5.1,5.2,94.6,0.466,100,33.33,rain,0,0,27.8,7.4,77.8,1014.2,91.2,8.8,21.5,1.9,1,,2024-03-05T07:16:45,2024-03-05T18:27:44,0.83,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-06,11.3,5.4,7.5,11.3,3.4,6.4,5.4,87.9,0.426,100,8.33,rain,0,0,23.4,13.9,108.3,1022.1,53.8,11.7,96.5,8.5,5,,2024-03-06T07:14:29,2024-03-06T18:29:32,0.87,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-07,8.9,3.2,5.6,5.5,-0.3,2.3,2.9,83.5,0,0,0,,0,0,39.5,27.8,75.9,1023.6,27,13.2,117.4,10.1,5,,2024-03-07T07:12:12,2024-03-07T18:31:20,0.9,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-03-08,9.7,1.8,5.5,6,-3.2,1.3,0.3,70.1,0,0,0,,0,0,47.2,33.1,90.1,1012.6,2.6,17.7,118.2,10.3,5,,2024-03-08T07:09:55,2024-03-08T18:33:08,0.94,Clear,Clear conditions throughout the day.,clear-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-09,12.5,3.6,7.9,12.5,-0.4,5.6,2.7,70.3,0,0,0,,0,0,36.3,26,97.8,1001.4,78.8,18.6,89.4,7.7,5,,2024-03-09T07:07:37,2024-03-09T18:34:56,0.97,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-10,11.3,6.2,8.7,11.3,2.5,6.5,4.2,73.5,0,0,0,,0,0,38.8,27.3,71.8,997.1,99.7,18.2,59.8,5.3,3,,2024-03-10T07:05:19,2024-03-10T18:36:44,0,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-11,8.3,6.7,7.1,7.2,4.1,5.5,6.1,93.3,3.569,100,58.33,rain,0,0,28.9,13.9,18.7,1002.1,99,5.9,18.2,1.6,1,,2024-03-11T07:03:01,2024-03-11T18:38:31,0.04,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-12,10.7,7,8.4,10.7,4,6.3,6.8,90.4,1.414,100,33.33,rain,0,0,31.6,21.5,215.3,1011.9,97.7,6.9,41,3.5,2,,2024-03-12T07:00:42,2024-03-12T18:40:18,0.07,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,06356099999,C0449,06257099999,EHAM,D3248,06348099999,06249099999,06240099999,06330099999,EHLE,06269099999,06344099999" +"Amsterdam,Netherlands",2024-03-13,12.2,8.8,10.9,12.2,6.6,10.7,9.3,90.2,1.099,100,37.5,rain,0,0,51.2,32.5,225.8,1013.3,99.6,21.2,27,2.2,1,,2024-03-13T06:58:23,2024-03-13T18:42:04,0.1,"Rain, Overcast",Cloudy skies throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-14,16.5,8.3,12.5,16.5,6,12,8.6,78.1,0.005,100,4.17,rain,0,0,41.3,27.7,194.2,1010.4,94.5,32.4,116.8,10.2,5,,2024-03-14T06:56:03,2024-03-14T18:43:51,0.14,"Rain, Overcast",Cloudy skies throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-15,14.2,10.5,12.5,14.2,10.5,12.5,9.8,83.9,0.701,100,25,rain,0,0,57.7,41.3,222.4,1006.2,90.3,21.7,56.8,4.8,2,,2024-03-15T06:53:43,2024-03-15T18:45:37,0.17,"Rain, Overcast",Cloudy skies throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-16,11,3.2,7.8,11,1.4,5.8,4.4,79.7,0.87,100,25,rain,0,0,41.1,27.2,296.5,1018.3,99.1,29.7,55.3,4.7,2,,2024-03-16T06:51:23,2024-03-16T18:47:23,0.2,"Rain, Overcast",Cloudy skies throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-17,12.8,4.6,9.3,12.8,2.9,8.1,6.6,83.4,2.806,100,25,rain,0,0,35.1,24.2,142.9,1019.3,99.7,26.2,64.8,5.4,3,,2024-03-17T06:49:03,2024-03-17T18:49:09,0.25,"Rain, Overcast",Cloudy skies throughout the day with late afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-18,13.3,7.2,10.7,13.3,6,10.4,8.4,86.6,0.944,100,12.5,rain,0,0,28.1,19.2,236.5,1015.6,87.9,15.5,129.7,11.2,6,,2024-03-18T06:46:43,2024-03-18T18:50:55,0.27,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-19,15.2,7.9,11.4,15.2,6,11,8.2,81.6,0,0,0,,0,0,38.1,27.7,211.3,1017.5,94.3,28.8,91.5,8,6,,2024-03-19T06:44:22,2024-03-19T18:52:41,0.3,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-03-20,15,8,11.2,15,6.8,10.9,8.8,85.7,0.021,100,8.33,rain,0,0,17.8,9.9,236.3,1019,99.7,21.7,76.6,6.7,3,,2024-03-20T06:42:01,2024-03-20T18:54:26,0.34,"Rain, Overcast",Cloudy skies throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-21,10.5,7.5,8.9,10.5,4.5,7.1,7.1,88.3,0.014,100,4.17,rain,0,0,29.2,20.9,267.2,1023.4,97.9,24.7,48,4,2,,2024-03-21T06:39:41,2024-03-21T18:56:12,0.37,"Rain, Overcast",Cloudy skies throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-22,10.8,7.6,9.7,10.8,6.2,8.7,7.9,88.8,0.634,100,37.5,rain,0,0,41.6,27.1,254.5,1016.2,100,10.5,27.6,2.4,1,,2024-03-22T06:37:20,2024-03-22T18:57:57,0.41,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-23,8.4,5,6.9,5.9,2.1,3.2,3.1,77.2,2.822,100,54.17,rain,0,0,56.3,40.9,259,1008.1,64,26.7,65.5,5.7,5,,2024-03-23T06:34:59,2024-03-23T18:59:42,0.44,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-24,8.1,5.3,6.9,3.9,1.1,2.6,4.5,84.8,7.443,100,91.67,rain,0,0,63,41.3,281.8,1004,93.2,15.7,55.7,4.9,3,,2024-03-24T06:32:38,2024-03-24T19:01:27,0.47,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-25,11.4,2.8,7.4,11.4,-0.1,5.8,2.5,73.1,0.855,100,8.33,rain,0,0,28.2,20.2,150.4,1004.7,69.7,26.1,132,11.4,6,,2024-03-25T06:30:18,2024-03-25T19:03:12,0.5,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-03-26,11,4.8,8.3,11,1.1,6.2,3.2,70.2,0.1,100,4.17,rain,0,0,36,21.6,119.1,991.7,96.9,29.6,96.5,8.3,3,,2024-03-26T06:27:57,2024-03-26T19:04:56,0.54,"Rain, Overcast",Cloudy skies throughout the day with late afternoon rain.,rain,"06260099999,06356099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06275099999,06269099999,06344099999" +"Amsterdam,Netherlands",2024-03-27,12.3,7.1,10,12.3,4.6,9,6,76.7,0.014,100,8.33,rain,0,0,37.4,23.2,175.6,985.5,86.8,24.3,84.4,7.2,4,,2024-03-27T06:25:36,2024-03-27T19:06:41,0.57,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"06356099999,06260099999,C0449,EHAM,06257099999,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-03-28,11.8,7,8.8,11.8,3.4,6.8,4.4,74.5,1.6,100,33.33,rain,0,0,63,40.9,178.9,984.6,76.3,10,84.5,7.3,7,,2024-03-28T06:23:16,2024-03-28T19:08:26,0.61,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"D3248,EHRD,C0449,EHLE,EHKD,EHAM" +"Amsterdam,Netherlands",2024-03-29,13.9,8,10.7,13.9,4.5,9.1,5.5,70.6,2.4,100,41.67,rain,0,0,51.8,29.8,186,991.4,59.5,10,117.6,10,4,,2024-03-29T06:20:56,2024-03-29T19:10:10,0.64,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"D3248,EHRD,C0449,EHLE,EHKD,EHAM" +"Amsterdam,Netherlands",2024-03-30,11.8,5,9,11.8,3.3,7.8,7.9,93.3,4.8,100,50,rain,0,0,25.6,22.6,200.1,996.3,78,8.8,27.3,2.3,1,,2024-03-30T06:18:35,2024-03-30T19:11:55,0.68,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"D3248,EHRD,C0449,EHLE,EHKD,EHAM" +"Amsterdam,Netherlands",2024-03-31,14.9,3.8,9.3,14.9,1.4,8,7.9,91.9,5.8,100,54.17,rain,0,0,38.5,21.9,82.6,996.8,69.4,8.5,69.3,5.7,5,,2024-03-31T07:16:16,2024-03-31T20:13:39,0.71,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"D3248,EHRD,C0449,EHLE,EHKD,EHAM" +"Amsterdam,Netherlands",2024-04-01,12.8,7.1,10.1,12.8,5.6,9.3,7.7,86.1,0.1,100,4.17,rain,0,0,40.3,30.6,218.9,994.9,50.9,14.7,64,5.8,3,,2024-04-01T07:13:56,2024-04-01T20:15:24,0.75,"Rain, Partially cloudy",Partly cloudy throughout the day with afternoon rain.,rain,"D3248,06260099999,EHRD,06348099999,06249099999,C0449,06240099999,EHLE,EHKD,EHAM,06257099999" +"Amsterdam,Netherlands",2024-04-02,12,7.5,9.7,12,4.6,8.3,7.5,86.3,1.6,100,33.33,rain,0,0,55.4,29.3,218.6,1003.4,48.4,18.4,90.5,7.8,5,,2024-04-02T07:11:37,2024-04-02T20:17:08,0.75,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"06260099999,06356099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-04-03,13.6,9.3,10.9,13.6,7.3,10.1,9.2,89.2,3.521,100,62.5,rain,0,0,62.8,37.6,202.4,1003.4,99.1,21.8,53.3,4.6,3,,2024-04-03T07:09:18,2024-04-03T20:18:52,0.82,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-04,13.9,9.1,11.5,13.9,6.2,11,9.1,85.4,4.072,100,45.83,rain,0,0,70.6,47.5,227.4,1004.1,98.1,15.7,111.5,9.5,7,,2024-04-04T07:06:59,2024-04-04T20:20:37,0.85,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-05,16.2,11.2,13.2,16.2,11.2,13.2,10.3,83.4,2.471,100,33.33,rain,0,0,66.6,46.8,213.1,1007.4,89.7,20.9,104.5,9.1,6,,2024-04-05T07:04:41,2024-04-05T20:22:21,0.88,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-06,23.2,11.3,16.8,23.2,11.3,16.8,10.9,70.7,0.495,100,4.17,rain,0,0,54.6,34.1,174.1,1008.4,97.1,34,143.6,12.5,6,,2024-04-06T07:02:23,2024-04-06T20:24:05,0.92,"Rain, Overcast",Cloudy skies throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-07,18.4,13.1,15.5,18.4,13.1,15.5,9.3,67.2,0.556,100,20.83,rain,0,0,53.1,37.6,221.2,1011.2,79.3,35.4,183.9,15.9,8,,2024-04-07T07:00:05,2024-04-07T20:25:50,0.95,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-08,18.5,10.8,14.6,18.5,10.8,14.6,10.9,79.2,0.068,100,20.83,rain,0,0,25,17.2,140.9,1008.3,89.5,30,113.5,9.6,5,,2024-04-08T06:57:48,2024-04-08T20:27:34,0,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-09,15.8,10.3,11.8,15.8,10.3,11.8,8.1,78.2,4.532,100,41.67,rain,0,0,69.8,48,216.7,1007.4,99.9,30.2,54.2,4.8,2,,2024-04-09T06:55:32,2024-04-09T20:29:18,0.02,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06257099999" +"Amsterdam,Netherlands",2024-04-10,14.1,8.3,11.2,14.1,5.9,10.2,5,67.3,0.447,100,25,rain,0,0,61.9,36.1,250,1025.2,76.9,29.4,173.5,15,7,,2024-04-10T06:53:16,2024-04-10T20:31:02,0.05,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-11,14.4,11.9,13,14.4,11.9,13,10.3,84.5,0.15,100,20.83,rain,0,0,48.9,33.3,221.4,1029.3,100,25.7,46.4,4,3,,2024-04-11T06:51:00,2024-04-11T20:32:47,0.09,"Rain, Overcast",Cloudy skies throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-12,17.3,12.9,14.9,17.3,12.9,14.9,11,78.4,0.023,100,4.17,rain,0,0,55.2,35.3,230.2,1029.1,100,26.6,150.5,12.9,6,,2024-04-12T06:48:45,2024-04-12T20:34:31,0.12,"Rain, Overcast",Cloudy skies throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-13,20.9,11.5,16.3,20.9,11.5,16.3,11,71.6,0,0,0,,0,0,53.2,35,230.4,1022.7,99.9,38.9,181.3,15.7,6,,2024-04-13T06:46:31,2024-04-13T20:36:15,0.15,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-14,13.7,8.8,11.3,13.7,7.8,11.1,5,65.5,0,0,0,,0,0,53.1,27.5,279.6,1021.2,99.8,31.5,190.3,16.8,7,,2024-04-14T06:44:17,2024-04-14T20:37:59,0.19,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-15,10.2,5.1,8.3,10.2,0.4,5.2,4.9,79.2,7.703,100,50,rain,0,0,87,45.7,238,1006.1,93.5,26.6,65.5,5.7,4,,2024-04-15T06:42:05,2024-04-15T20:39:44,0.25,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-16,10.6,5.6,8.4,10.6,0,4.9,5.1,80.2,11.676,100,58.33,rain,0,0,66.1,44,303.1,1003.4,86.1,21.8,91.6,7.9,4,,2024-04-16T06:39:53,2024-04-16T20:41:28,0.25,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-17,8.6,4,6.1,7.8,0.3,4.2,3.2,82,10.732,100,62.5,rain,0,0,39.2,23,317.8,1011.9,70.5,32.3,116,10.1,5,,2024-04-17T06:37:41,2024-04-17T20:43:12,0.28,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-18,10.3,1.8,6.9,10.3,-1,4.8,2.9,77.7,0.122,100,16.67,rain,0,0,34.7,23.7,295.4,1018.5,65,34.9,151.2,13.1,6,,2024-04-18T06:35:31,2024-04-18T20:44:56,0.32,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-19,10.3,6.7,8.6,10.3,2.4,4.9,6.4,86,9.469,100,95.83,rain,0,0,66.4,44.9,302,1010.9,98.5,14.6,114.1,9.7,8,,2024-04-19T06:33:21,2024-04-19T20:46:40,0.35,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-20,9.7,5.9,7.4,6.1,1.8,3.8,3.5,76.1,2.218,100,54.17,rain,0,0,58.2,34.2,334.4,1021.1,91.6,24.4,172,14.9,8,,2024-04-20T06:31:12,2024-04-20T20:48:24,0.38,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-21,10.5,3.2,6.8,10.5,-1.6,3.6,2,72.1,1.675,100,20.83,rain,0,0,54.3,26.2,19.7,1025.1,48.6,34.8,234.3,20.3,8,,2024-04-21T06:29:04,2024-04-21T20:50:08,0.42,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-22,9.8,1.9,6,7.1,-0.9,3.5,0.2,68.6,0.269,100,12.5,rain,0,0,36.4,24.5,18.9,1025.9,75.8,38.5,195.3,16.8,8,,2024-04-22T06:26:57,2024-04-22T20:51:52,0.45,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-23,9.5,-0.3,5.4,9.3,-1.4,3.5,0.1,70.6,1.639,100,20.83,rain,0,0,39.1,29.7,304.8,1020.5,68.7,36.9,172.4,14.9,8,,2024-04-23T06:24:52,2024-04-23T20:53:35,0.48,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-24,9.4,4.6,6.4,5.5,0.8,2.9,2.9,78.6,2.51,100,70.83,rain,0,0,56.1,34.2,323.9,1010.6,86,31,117.7,10.2,7,,2024-04-24T06:22:47,2024-04-24T20:55:19,0.5,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-25,9.8,3.6,6.2,7,1.6,3.6,2.9,80.1,5.41,100,54.17,rain,0,0,41.3,29.3,225.5,1004.9,91.7,29.7,83.8,7.3,3,,2024-04-25T06:20:43,2024-04-25T20:57:02,0.55,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-26,11,4.3,7.8,11,1.3,6.1,3.6,75.5,1.107,100,33.33,rain,0,0,31,20.1,256.5,1003.2,87.7,34.3,176,15.2,7,,2024-04-26T06:18:40,2024-04-26T20:58:46,0.59,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-27,15,5.7,10.6,15,4.4,9.8,8,85,2.916,100,37.5,rain,0,0,31,19.2,109.8,1005,99.3,29.7,103,8.9,4,,2024-04-27T06:16:39,2024-04-27T21:00:29,0.62,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-28,15.3,7.3,12.8,15.3,4.9,12.6,7.8,72.1,0.788,100,12.5,rain,0,0,69.5,47.2,184.3,1006.3,90.7,41.7,88.7,7.7,4,,2024-04-28T06:14:38,2024-04-28T21:02:12,0.66,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-29,18.7,5.6,12.4,18.7,2.9,11.6,7.1,72.4,0.023,100,8.33,rain,0,0,39.4,26.4,172.5,1018.1,35.8,33.7,262.1,22.8,9,,2024-04-29T06:12:39,2024-04-29T21:03:54,0.69,"Rain, Partially cloudy",Becoming cloudy in the afternoon with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-04-30,20.4,11.9,15.7,20.4,11.9,15.7,11.3,76,0,0,0,,0,0,25.9,19.9,138.3,1015.5,91.5,36.7,180.8,15.4,8,,2024-04-30T06:10:42,2024-04-30T21:05:36,0.73,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-01,22.3,13.9,18.1,22.3,13.9,18.1,14.6,80.4,0.7,100,8.33,rain,0,0,30.2,19,5.6,1007.3,53.9,10,237.8,20.6,7,,2024-05-01T06:08:45,2024-05-01T21:07:18,0.75,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"D3248,EHRD,C0449,EHLE,EHKD,EHAM" +"Amsterdam,Netherlands",2024-05-02,24.4,13.1,17.6,24.4,13.1,17.6,13.3,77.1,0.85,100,29.17,rain,0,0,36.3,24.6,37.4,1000.1,75.7,24.9,228.7,19.8,7,,2024-05-02T06:06:50,2024-05-02T21:09:00,0.8,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-03,13.6,9.3,12,13.6,7.7,11.9,10.7,91.5,3.878,100,58.33,rain,0,0,48,33.5,227.4,1007.2,86.7,15.2,33,2.7,1,,2024-05-03T06:04:56,2024-05-03T21:10:42,0.83,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-04,16.6,6.9,11.5,16.6,5.1,11,8.5,83,4.036,100,25,rain,0,0,47.5,22.2,148,1013.2,92.1,26.6,158.7,13.9,6,,2024-05-04T06:03:04,2024-05-04T21:12:22,0.87,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-05,15.7,9.3,12.5,15.7,7.3,12.1,8.9,80.5,6.25,100,33.33,rain,0,0,31.2,18,295.4,1009,75.2,33,255.7,22.2,8,,2024-05-05T06:01:14,2024-05-05T21:14:03,0.9,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-06,18.1,8.5,13.9,18.1,7.4,13.6,9.3,75.5,0,0,0,,0,0,25.6,17.6,69.7,1008.7,83.8,32.1,165,14.3,7,,2024-05-06T05:59:25,2024-05-06T21:15:43,0.94,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-07,18,10.6,14.1,18,10.6,14.1,9.5,74.8,0,0,0,,0,0,35.2,26.1,7.3,1018.8,71.5,28.5,194.7,16.7,8,,2024-05-07T05:57:37,2024-05-07T21:17:22,0.97,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-05-08,15,10.2,12.5,15,10.2,12.5,9.9,84.7,0.058,100,8.33,rain,0,0,23,15.6,340.7,1027.2,89.6,25.1,101.7,8.7,4,,2024-05-08T05:55:52,2024-05-08T21:19:01,0,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,06356099999,C0449,06257099999,EHAM,06267099999,D3248,06273099999,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-05-09,17.2,6.3,12.3,17.2,6.3,12.3,9.2,82.3,0,0,0,,0,0,21.3,13.6,301.7,1027.6,50.8,15.5,215.2,18.6,8,,2024-05-09T05:54:08,2024-05-09T21:20:40,0.04,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-10,19.2,8.5,14.4,19.2,8.5,14.4,10.5,79,0,0,0,,0,0,21.7,17,38,1024.5,80,15.9,237.7,20.5,8,,2024-05-10T05:52:25,2024-05-10T21:22:17,0.07,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-11,21.7,11.1,16.1,21.7,11.1,16.1,11.4,75.9,0,0,0,,0,0,27.4,18.7,57.5,1022.5,93.5,23.2,247.8,21.3,8,,2024-05-11T05:50:45,2024-05-11T21:23:54,0.11,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-12,25,14,19.5,25,14,19.5,11,59.2,0.065,100,4.17,rain,0,0,38.3,24,95.7,1016.1,99.4,37.3,271.5,23.4,7,,2024-05-12T05:49:06,2024-05-12T21:25:30,0.14,"Rain, Overcast",Cloudy skies throughout the day with early morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-13,22.4,16.8,19.6,22.4,16.8,19.6,14.8,74.4,0.461,100,4.17,rain,0,0,34.6,20.8,147.4,1010,74.1,33.4,170,14.7,7,,2024-05-13T05:47:30,2024-05-13T21:27:05,0.17,"Rain, Partially cloudy",Partly cloudy throughout the day with late afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-14,26.6,15.6,20.2,26.6,15.6,20.2,14.4,72.2,0.962,100,12.5,rain,0,0,48.3,31.2,131.1,1004.9,41.3,31.2,249.6,21.7,8,,2024-05-14T05:45:55,2024-05-14T21:28:40,0.2,"Rain, Partially cloudy",Becoming cloudy in the afternoon with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-15,19.8,12.8,16,19.8,12.8,16,14.3,90.6,6.274,100,37.5,rain,0,0,32.8,19,302.6,1006.1,81.5,12.4,131,11.4,7,,2024-05-15T05:44:22,2024-05-15T21:30:13,0.25,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-16,20.2,13.7,16,20.2,13.7,16,14.1,88.9,3.508,100,20.83,rain,0,0,31.5,26.6,246.5,1004.8,99.7,13.7,155,13.3,8,,2024-05-16T05:42:52,2024-05-16T21:31:46,0.27,"Rain, Overcast",Cloudy skies throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-17,17.5,13.2,14.7,17.5,13.2,14.7,13.5,92.8,1.518,100,16.67,rain,0,0,30.7,22.7,318,1008.4,98.6,8.7,143.7,12.4,8,,2024-05-17T05:41:23,2024-05-17T21:33:17,0.3,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-18,22.3,13.3,17.5,22.3,13.3,17.5,12.9,77.2,0.214,100,8.33,rain,0,0,27.8,16.6,321.3,1010.3,67.6,18.3,273.8,23.6,8,,2024-05-18T05:39:57,2024-05-18T21:34:47,0.33,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-19,21.5,11.3,17,21.5,11.3,17,11.8,74.2,0.717,100,4.17,rain,0,0,41.8,27.9,3.5,1011.2,22.3,22.8,268.6,23.2,8,,2024-05-19T05:38:33,2024-05-19T21:36:16,0.37,"Rain, Partially cloudy",Becoming cloudy in the afternoon with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-20,19,13.1,15.7,19,13.1,15.7,13.7,88.2,2.89,100,20.83,rain,0,0,30.8,17.4,353.5,1011.5,89.7,18.8,109.6,9.4,6,,2024-05-20T05:37:11,2024-05-20T21:37:44,0.4,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-21,23.1,12.4,17.4,23.1,12.4,17.4,14.1,83.1,8.497,100,29.17,rain,0,0,53.1,25.9,52.3,1008.1,78.8,20.9,207.5,17.8,7,,2024-05-21T05:35:52,2024-05-21T21:39:11,0.43,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-22,18.1,14,15.5,18.1,14,15.5,13,85.7,23.183,100,37.5,rain,0,0,46.3,30,223.5,1006.8,95.3,23.1,85.3,7.3,7,,2024-05-22T05:34:35,2024-05-22T21:40:36,0.46,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-23,18.1,13.2,15.5,18.1,13.2,15.5,11.6,78.1,0,0,0,,0,0,41.7,26.9,225.1,1013.5,58.9,28.8,183.6,15.7,8,,2024-05-23T05:33:21,2024-05-23T21:41:59,0.5,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-24,18.7,11.4,14.9,18.7,11.4,14.9,12.8,87.9,5.086,100,37.5,rain,0,0,27.1,17.2,22.9,1018.3,96.7,14.4,113.4,10,4,,2024-05-24T05:32:09,2024-05-24T21:43:21,0.53,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-25,17.7,11.6,15.2,17.7,11.6,15.2,13.8,91.7,31.269,100,45.83,rain,0,0,32.5,21.4,261.1,1016.3,85.4,17.5,98.3,8.3,3,,2024-05-25T05:30:59,2024-05-25T21:44:42,0.57,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-26,20.4,11.1,15.6,20.4,11.1,15.6,12.5,82.5,3.309,100,20.83,rain,0,0,48.1,21.3,154.4,1014.7,74.6,24.1,174.7,15.1,7,,2024-05-26T05:29:52,2024-05-26T21:46:01,0.6,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06356099999,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-27,17.3,12.7,14.7,17.3,12.7,14.7,10.1,74.9,1.316,100,20.83,rain,0,0,34.5,23.9,232.8,1016,84.4,30.4,219.9,19.2,9,,2024-05-27T05:28:48,2024-05-27T21:47:18,0.64,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-28,18.7,10.8,14.2,18.7,10.8,14.2,11.1,82.4,6.213,100,37.5,rain,0,0,44.4,26,198.9,1015.5,84.6,23.1,189,16.4,7,,2024-05-28T05:27:46,2024-05-28T21:48:33,0.67,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-29,17,13.9,15.2,17,13.9,15.2,13,87.1,22.194,100,66.67,rain,0,0,45.2,29.9,242,1008.1,88.9,19.3,151.7,13.2,6,,2024-05-29T05:26:48,2024-05-29T21:49:46,0.71,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-30,16.6,12.9,14.3,16.6,12.9,14.3,12,86.3,0.621,100,8.33,rain,0,0,32.1,23.9,261.7,1006.6,97.5,24.4,121.6,10.5,5,,2024-05-30T05:25:52,2024-05-30T21:50:57,0.75,"Rain, Overcast",Cloudy skies throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-05-31,18.5,12.9,15.4,18.5,12.9,15.4,12.5,83.7,1.511,100,33.33,rain,0,0,42.2,27.7,339.3,1011.5,90.3,24.8,216.6,18.7,9,,2024-05-31T05:24:59,2024-05-31T21:52:07,0.78,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06257099999" +"Amsterdam,Netherlands",2024-06-01,15.7,13.8,14.8,15.7,13.8,14.8,13.6,92.9,2.332,100,33.33,rain,0,0,42.1,26.4,350.1,1018,100,9.3,51,4.5,2,,2024-06-01T05:24:08,2024-06-01T21:53:14,0.82,"Rain, Overcast",Cloudy skies throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-02,16.4,12.8,14,16.4,12.8,14,9.5,74.5,0.559,100,16.67,rain,0,0,38.4,23.5,342.8,1023.5,94.8,20.9,198.6,17.4,9,,2024-06-02T05:23:21,2024-06-02T21:54:19,0.85,"Rain, Overcast",Cloudy skies throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-03,16.3,9.7,13.7,16.3,8.8,13.7,10.6,81.9,0,0,0,,0,0,24.9,14.1,288.4,1020.7,92.4,27.4,141.3,12.2,5,,2024-06-03T05:22:37,2024-06-03T21:55:21,0.89,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-06-04,20.4,11.8,16,20.4,11.8,16,13,83.4,0,0,0,,0,0,46.4,27,214.9,1012.6,99.3,16.8,111.2,9.6,6,,2024-06-04T05:21:55,2024-06-04T21:56:22,0.92,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-05,14.8,10.8,13.1,14.8,10.8,13.1,7.4,69.6,3.409,100,12.5,rain,0,0,47.7,34.9,268.9,1012,54.7,26.5,302,26.2,9,,2024-06-05T05:21:17,2024-06-05T21:57:19,0.96,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-06,16.8,9.7,13.2,16.8,8.3,13,7.3,68.9,0,0,0,,0,0,37.6,20.6,254.7,1016.8,79.7,25.1,153.3,13.1,7,,2024-06-06T05:20:42,2024-06-06T21:58:15,0,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-07,17.8,10,14.3,17.8,10,14.3,8.3,69.3,0,0,0,,0,0,41.2,26.3,241.7,1017.9,45.9,22.3,257.1,22.3,10,,2024-06-07T05:20:09,2024-06-07T21:59:08,0.03,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-08,17.6,10.2,13.7,17.6,10.2,13.7,10.3,80.3,0.373,100,8.33,rain,0,0,45.4,33.5,243.3,1012.5,65,24.7,189.6,16.4,9,,2024-06-08T05:19:40,2024-06-08T21:59:58,0.06,"Rain, Partially cloudy",Partly cloudy throughout the day with late afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-09,15.3,9,12.8,15.3,7.4,12.5,7.9,73.3,0.62,100,12.5,rain,0,0,46.6,33.8,261.7,1010.9,53.2,32.5,169.3,14.5,7,,2024-06-09T05:19:14,2024-06-09T22:00:45,0.09,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-10,14.1,9.4,11.6,14.1,5.7,11.2,10.1,90.4,24.004,100,62.5,rain,0,0,63.1,32.2,274,1005.8,99.9,20.3,72.5,6.4,6,,2024-06-10T05:18:51,2024-06-10T22:01:30,0.13,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-11,14.9,9.5,11.9,14.9,7.6,11.5,8.1,78.2,8.244,100,58.33,rain,0,0,41.9,30.4,289.6,1014.7,74.3,30.2,200,17.3,9,,2024-06-11T05:18:32,2024-06-11T22:02:12,0.16,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-12,14.5,9.5,11.5,14.5,8.5,11.4,7.8,78.4,2.397,100,37.5,rain,0,0,39.7,25,297.8,1019.4,98.2,33.7,150.4,13,4,,2024-06-12T05:18:15,2024-06-12T22:02:51,0.19,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-13,17.5,10.4,14,17.5,10.4,14,8.8,71.8,0.346,100,4.17,rain,0,0,38.6,24.6,228.5,1015.8,89.6,31.8,152.1,13.4,7,,2024-06-13T05:18:02,2024-06-13T22:03:28,0.22,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-14,17.9,13,15,17.9,13,15,11.9,82.1,1.596,100,25,rain,0,0,39.7,27.3,175.7,1005.8,95.6,29.6,97.8,8.4,3,,2024-06-14T05:17:52,2024-06-14T22:04:01,0.25,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06356099999,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-15,17.2,11.9,14.2,17.2,11.9,14.2,11.2,82.9,9.259,100,62.5,rain,0,0,65.6,41.1,208.8,1001.5,77.5,23.7,159.1,13.7,6,,2024-06-15T05:17:45,2024-06-15T22:04:31,0.29,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-16,17.2,12.6,14.9,17.2,12.6,14.9,11.3,79.7,2.728,100,37.5,rain,0,0,47.4,30.3,207,1004.5,85.4,34.7,180,15.5,9,,2024-06-16T05:17:42,2024-06-16T22:04:58,0.32,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-17,19.1,12.3,16,19.1,12.3,16,10.8,72.5,0.555,100,4.17,rain,0,0,38.5,25.3,230.9,1010.4,69.9,29.8,219.5,18.8,9,,2024-06-17T05:17:41,2024-06-17T22:05:23,0.35,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-18,18.4,10.6,15.3,18.4,10.6,15.3,12.3,82.8,0.608,100,29.17,rain,0,0,22.6,10.5,77.9,1013.9,99.6,29,92.8,8.2,3,,2024-06-18T05:17:44,2024-06-18T22:05:44,0.38,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-19,18.8,12.3,15.7,18.8,12.3,15.7,11.6,78.2,0.178,100,4.17,rain,0,0,34,21,4.7,1019,50,26.7,207.2,17.8,9,,2024-06-19T05:17:50,2024-06-19T22:06:02,0.42,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-20,20.4,9.7,15.3,20.4,8.9,15.3,11.7,79.9,0,0,0,,0,0,27.4,15.3,47.3,1020.4,78.4,34.7,182,15.8,7,,2024-06-20T05:17:59,2024-06-20T22:06:16,0.45,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999,EHAM" +"Amsterdam,Netherlands",2024-06-21,18.7,13.4,15.9,18.7,13.4,15.9,13.9,88.1,0.941,100,20.83,rain,0,0,27.3,15.9,328,1013.2,98,21.5,80.2,6.8,4,,2024-06-21T05:18:12,2024-06-21T22:06:28,0.48,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-22,19.3,13.2,16.3,19.3,13.2,16.3,13.1,81.8,0.335,100,4.17,rain,0,0,35.6,23.7,249.4,1012.6,67.1,23.2,268.5,23.1,10,,2024-06-22T05:18:27,2024-06-22T22:06:36,0.5,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-23,22.5,12.8,17.9,22.5,12.8,17.9,13.4,76.7,0,0,0,,0,0,28.1,17.7,265.5,1018.9,26.8,27.8,279.5,24.3,9,,2024-06-23T05:18:46,2024-06-23T22:06:41,0.55,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-24,24.6,11.8,19.1,24.6,11.8,19.1,14,74.7,0,0,0,,0,0,21.3,13.7,76.8,1020.3,10.9,28.5,308.9,26.5,10,,2024-06-24T05:19:07,2024-06-24T22:06:43,0.59,Clear,Clear conditions throughout the day.,clear-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-25,27.1,15.9,22.1,27.6,15.9,22.2,16,70.2,0,0,0,,0,0,31.1,20.3,51.6,1016.2,4.1,34.8,288,25,8,,2024-06-25T05:19:32,2024-06-25T22:06:42,0.62,Clear,Clear conditions throughout the day.,clear-day,"06260099999,D3248,06348099999,06249099999,06240099999,C0449,06269099999,06257099999" +"Amsterdam,Netherlands",2024-06-26,28.8,18.6,24.1,28.8,18.6,24.2,16.8,66.1,0,0,0,,0,0,24.9,14.5,54.1,1011.5,0.6,32.5,293.2,25.4,8,,2024-06-26T05:20:00,2024-06-26T22:06:37,0.66,Clear,Clear conditions throughout the day.,clear-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-27,26.6,18.5,22.1,26.6,18.5,22.1,16.3,71.4,0,0,0,,0,0,41.5,32.1,248.3,1008.3,47.3,27,257,22.2,8,,2024-06-27T05:20:30,2024-06-27T22:06:29,0.69,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-28,19.3,15.4,17.5,19.3,15.4,17.5,11.7,69,0,0,0,,0,0,45,30.4,250,1014.5,66,30.1,212.2,18.4,10,,2024-06-28T05:21:04,2024-06-28T22:06:18,0.75,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-29,22.9,11.5,17.8,22.9,11.5,17.8,12.4,72.5,0.066,100,8.33,rain,0,0,35.4,19.2,340.9,1014.6,83.1,27.2,292.3,25.1,9,,2024-06-29T05:21:40,2024-06-29T22:06:04,0.76,"Rain, Partially cloudy",Partly cloudy throughout the day with late afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-06-30,19.9,14.7,17.6,19.9,14.7,17.6,13.6,78.3,0.507,100,12.5,rain,0,0,35,25,315.4,1009.9,99.6,36.1,187.2,16.2,8,,2024-06-30T05:22:19,2024-06-30T22:05:46,0.8,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-01,18,12.9,15.8,18,12.9,15.8,11.4,75.4,0.203,100,8.33,rain,0,0,40.8,24.6,285.5,1015.2,87.5,37.3,172.7,14.8,9,,2024-07-01T05:23:01,2024-07-01T22:05:25,0.84,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-02,17.3,12.8,15.3,17.3,12.8,15.3,11.6,79.8,3.898,100,37.5,rain,0,0,38,26.8,308.4,1014.9,96.4,25.7,147.6,12.8,6,,2024-07-02T05:23:46,2024-07-02T22:05:01,0.87,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-03,16.5,10.6,13.7,16.5,10.6,13.7,10.5,81.5,2.363,100,45.83,rain,0,0,31.1,23,234.1,1009.9,92.6,30,133.4,11.5,7,,2024-07-03T05:24:33,2024-07-03T22:04:34,0.91,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-04,16.9,14.2,15.8,16.9,14.2,15.8,10.3,71.2,14.628,100,33.33,rain,0,0,54.6,33.5,256.6,1006.5,72.6,27.1,228.9,19.9,10,,2024-07-04T05:25:23,2024-07-04T22:04:03,0.94,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-05,17.2,15.2,16.1,17.2,15.2,16.1,13,82.2,1.173,100,33.33,rain,0,0,46.7,29.3,221.6,1007.9,98.9,21,76.2,6.8,4,,2024-07-05T05:26:15,2024-07-05T22:03:30,0.98,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-06,19.5,13.5,16.5,19.5,13.5,16.5,13.2,81.5,9.967,100,45.83,rain,0,0,79.6,54.8,219.8,1001.3,84.2,26.6,206.9,17.7,9,,2024-07-06T05:27:10,2024-07-06T22:02:53,0,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-07,17.3,12.4,14.8,17.3,12.4,14.8,11.4,81,4.117,100,50,rain,0,0,46.9,29.9,206.9,1011,84.7,34.9,145.3,12.5,4,,2024-07-07T05:28:07,2024-07-07T22:02:13,0.05,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-08,20,12.2,16.5,20,12.2,16.5,12.2,76.8,1.382,100,12.5,rain,0,0,37,17.7,215.1,1016.4,61.9,34.3,160.7,14,8,,2024-07-08T05:29:07,2024-07-08T22:01:30,0.08,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-09,26,16.6,20.1,26,16.6,20.1,15.1,74.4,2.33,100,20.83,rain,0,0,76,24.1,86.5,1013.7,99.7,32.7,176.1,15.3,7,,2024-07-09T05:30:08,2024-07-09T22:00:44,0.11,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-10,21.1,16.5,18.9,21.1,16.5,18.9,15.5,81.6,16.692,100,20.83,rain,0,0,51,30.5,222.7,1013.6,80.1,24,210.9,18.4,8,,2024-07-10T05:31:12,2024-07-10T21:59:56,0.14,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-11,19.5,15,17.1,19.5,15,17.1,13,77.2,0,0,0,,0,0,42,24.2,251.2,1016.9,92.8,36.2,199.9,17.5,10,,2024-07-11T05:32:18,2024-07-11T21:59:04,0.18,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-12,15.2,13.8,14.7,15.2,13.8,14.7,12.8,88.5,8.476,100,41.67,rain,0,0,32.1,20.7,342.7,1013.8,100,29.2,52,4.5,2,,2024-07-12T05:33:26,2024-07-12T21:58:09,0.21,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-13,16,14,15,16,14,15,12.8,87.1,5.368,100,54.17,rain,0,0,54,31,247.7,1010.8,93.8,25.8,106.4,9.4,6,,2024-07-13T05:34:36,2024-07-13T21:57:12,0.24,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,06356099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-07-14,19.9,13.1,16.8,19.9,13.1,16.8,11.9,73.8,0.092,100,12.5,rain,0,0,46.2,34,227.6,1011.6,56.1,22.2,272,23.6,9,,2024-07-14T05:35:48,2024-07-14T21:56:12,0.25,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,06356099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06330099999,06275099999,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-07-15,24.1,12.1,18.4,24.1,12.1,18.4,13.1,73,2.35,100,12.5,rain,0,0,26,14.1,153.3,1010.9,54.7,30.4,235.8,20.1,8,,2024-07-15T05:37:02,2024-07-15T21:55:09,0.31,"Rain, Partially cloudy",Partly cloudy throughout the day with late afternoon rain.,rain,"D3248,06260099999,EHRD,06348099999,06249099999,C0449,06240099999,EHLE,06269099999,06344099999,EHAM,06257099999" +"Amsterdam,Netherlands",2024-07-16,20.3,16.3,18.1,20.3,16.3,18.1,15,82.5,9.575,100,41.67,rain,0,0,43,30.3,223.4,1008.7,84.5,29,207.3,17.7,10,,2024-07-16T05:38:17,2024-07-16T21:54:03,0.34,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-17,20.6,15,17.7,20.6,15,17.7,14.2,80.8,0.545,100,8.33,rain,0,0,36.7,24.1,272.5,1019.1,72.7,33.2,235.4,20.2,9,,2024-07-17T05:39:34,2024-07-17T21:52:54,0.37,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-18,25.3,12.5,19.3,25.3,12.5,19.3,14.6,76.9,0,0,0,,0,0,18,11.2,61.8,1022.3,73.1,19.7,287.3,24.9,10,,2024-07-18T05:40:53,2024-07-18T21:51:44,0.4,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-19,27.6,17.3,22.3,28.4,17.3,22.4,16.8,72.4,0.005,100,4.17,rain,0,0,18,13.5,100.9,1018.5,87.7,32.6,181.1,15.4,7,,2024-07-19T05:42:13,2024-07-19T21:50:30,0.43,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-20,29.3,18.2,23.6,29.4,18.2,23.7,16.6,66.1,0.146,100,8.33,rain,0,0,24,19.2,128,1009.7,44.1,28.3,277.4,24,9,,2024-07-20T05:43:34,2024-07-20T21:49:14,0.47,"Rain, Partially cloudy",Becoming cloudy in the afternoon with rain.,rain,"06260099999,06356099999,C0449,06257099999,EHAM,06267099999,D3248,EHRD,06348099999,06249099999,06240099999,06330099999,EHLE,06275099999,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-07-21,22.2,16.4,19.3,22.2,16.4,19.3,16.6,84.6,0.988,100,16.67,rain,0,0,29,20.8,306.6,1008.3,89.5,30.4,126.5,11.1,6,,2024-07-21T05:44:57,2024-07-21T21:47:56,0.5,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-22,21.9,13.2,18.1,21.9,13.2,18.1,14.2,79.1,1.494,100,12.5,rain,0,0,39.9,27.5,242.3,1015.7,61.5,31.7,195.3,16.9,9,,2024-07-22T05:46:21,2024-07-22T21:46:35,0.54,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-23,21.6,17,19.1,21.6,17,19.1,15.8,81.4,0.346,100,16.67,rain,0,0,38.4,25.1,272.1,1016,90,28.1,165.7,14.4,7,,2024-07-23T05:47:46,2024-07-23T21:45:12,0.57,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,EHLE,06269099999,06257099999,06344099999,EHAM" +"Amsterdam,Netherlands",2024-07-24,20.2,14.1,17.8,20.2,14.1,17.8,12.8,73.6,0,0,0,,0,0,33.7,16.3,321.1,1020.8,57.2,32.2,267.5,23.2,8,,2024-07-24T05:49:13,2024-07-24T21:43:46,0.61,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-25,22.3,13.1,18.3,22.3,13.1,18.3,14.4,78.3,0.363,100,20.83,rain,0,0,39.1,30,192.7,1013.8,94.5,33.4,128.6,11.1,7,,2024-07-25T05:50:41,2024-07-25T21:42:18,0.64,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-26,21,15.7,18.8,21,15.7,18.8,15.6,82.2,3.884,100,41.67,rain,0,0,34.6,23.2,250.1,1010.2,92.1,25.5,179.9,15.8,8,,2024-07-26T05:52:09,2024-07-26T21:40:49,0.68,"Rain, Overcast",Cloudy skies throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-27,22.3,12.8,17.8,22.3,12.8,17.8,13.5,77.9,0.014,100,4.17,rain,0,0,27.4,17,234.7,1013.9,57.1,23.2,194.4,16.8,8,,2024-07-27T05:53:39,2024-07-27T21:39:17,0.71,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-28,22.1,14,18.4,22.1,14,18.4,13.1,73,0,0,0,,0,0,23,14.4,311.5,1023.9,35.4,30.5,217.8,18.6,9,,2024-07-28T05:55:09,2024-07-28T21:37:42,0.75,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-29,25.6,13.5,19.8,25.6,13.5,19.8,13.6,69.6,0,0,0,,0,0,24.8,14.4,99.4,1023.5,41.9,37.3,303,26.1,9,,2024-07-29T05:56:41,2024-07-29T21:36:06,0.78,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-30,27.9,16.4,22.6,28.6,16.4,22.7,15.4,65.8,0,0,0,,0,0,20.4,13.5,51.6,1017,56.1,35.8,294.4,25.5,9,,2024-07-30T05:58:13,2024-07-30T21:34:28,0.82,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-07-31,25.2,16.9,21.3,25.2,16.9,21.3,14.7,66.9,0,0,0,,0,0,36.4,17.5,47.1,1015.5,79,36.5,225,19.3,8,,2024-07-31T05:59:46,2024-07-31T21:32:48,0.86,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-08-01,22.3,16.4,19.4,22.3,16.4,19.4,15.6,78.7,0,0,0,,0,0,31.1,19.9,52.1,1013,90.4,32.6,111.9,9.5,4,,2024-08-01T06:01:20,2024-08-01T21:31:07,0.89,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-02,25,14.9,19.8,25,14.9,19.8,14.7,74,0,0,0,,0,0,18.2,13.2,87.5,1012.6,52.2,29.2,211.1,18.2,7,,2024-08-02T06:02:54,2024-08-02T21:29:23,0.93,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-08-03,22.9,18,20.3,22.9,18,20.3,16.7,80.1,0.029,100,8.33,rain,0,0,43.4,30.2,242.8,1011.1,94.8,24.2,167.9,14.4,6,,2024-08-03T06:04:29,2024-08-03T21:27:37,0.96,"Rain, Overcast",Cloudy skies throughout the day with late afternoon rain.,rain,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-08-04,19.8,14.4,17.6,19.8,14.4,17.6,12.4,72.7,0.049,100,12.5,rain,0,0,39.9,17,293.4,1014.5,99.5,28.5,142.7,12.1,5,,2024-08-04T06:06:04,2024-08-04T21:25:50,0,"Rain, Overcast",Cloudy skies throughout the day with rain clearing later.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-05,23.1,14.8,19.1,23.1,14.8,19.1,13.5,70.3,0,0,0,,0,0,34,19.5,218.9,1014.1,52.6,29.9,233.5,20.2,8,,2024-08-05T06:07:40,2024-08-05T21:24:02,0.03,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-06,27.5,16.1,21.4,27.8,16.1,21.5,15.2,69,0,0,0,,0,0,31.3,20.4,196.4,1010.6,58,28.4,225.7,19.6,9,,2024-08-06T06:09:16,2024-08-06T21:22:11,0.06,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-07,22.5,17.6,20,22.5,17.6,20,13.9,69.8,0.34,100,16.67,rain,0,0,39.1,23.9,262,1011.8,62.4,33.7,249.9,21.6,9,,2024-08-07T06:10:53,2024-08-07T21:20:19,0.1,"Rain, Partially cloudy",Clearing in the afternoon with rain clearing later.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-08,23.6,17.5,20.3,23.6,17.5,20.3,13.5,66.4,0,0,0,,0,0,37.9,23.9,221.4,1014.9,80.1,28,261.7,22.6,9,,2024-08-08T06:12:30,2024-08-08T21:18:26,0.13,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-09,22.8,17.1,20.3,22.8,17.1,20.3,16.6,79.8,0.448,100,29.17,rain,0,0,61.7,36.1,240.7,1013.1,85.2,27.6,132.9,11.5,5,,2024-08-09T06:14:08,2024-08-09T21:16:31,0.16,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-10,23.1,16.9,19.8,23.1,16.9,19.8,14.6,73.6,0.037,100,4.17,rain,0,0,45.2,30.5,237.9,1019,64.1,23.7,211.8,18.4,7,,2024-08-10T06:15:45,2024-08-10T21:14:35,0.19,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-11,25.9,15.5,21.2,25.9,15.5,21.2,16.2,74.7,0.027,100,8.33,rain,0,0,29.9,18.1,52.3,1021.1,34,24.8,249.3,21.5,8,,2024-08-11T06:17:23,2024-08-11T21:12:37,0.23,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06344099999" +"Amsterdam,Netherlands",2024-08-12,30.8,16.8,23.9,32.2,16.8,24.5,16.6,64.8,0,0,0,,0,0,34.6,21.8,103.2,1012.2,5.9,10,268.5,23.1,9,,2024-08-12T06:19:02,2024-08-12T21:10:38,0.25,Clear,Clear conditions throughout the day.,clear-day,"D3248,EHRD,C0449,EHLE,EHKD,EHAM" +"Amsterdam,Netherlands",2024-08-13,26.2,20.3,23.5,26.2,20.3,23.5,19.2,77.3,0.088,100,8.33,rain,0,0,27.1,19,249.7,1008.9,77.5,27.1,165.2,14.4,7,,2024-08-13T06:20:40,2024-08-13T21:08:37,0.29,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-14,22.5,18.2,20.7,22.5,18.2,20.7,17.7,83.8,4.624,100,41.67,rain,0,0,24.3,13.7,298.4,1011.6,100,19.9,79.6,7,5,,2024-08-14T06:22:19,2024-08-14T21:06:36,0.33,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-15,23.9,16.5,20.5,23.9,16.5,20.5,16.6,79.2,0.417,100,4.17,rain,0,0,42.8,30.5,230.5,1015.1,61.6,19.8,165,14.4,6,,2024-08-15T06:23:58,2024-08-15T21:04:33,0.36,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-16,21.3,17.2,19.7,21.3,17.2,19.7,17.1,85.1,7.05,100,66.67,rain,0,0,43.8,25.8,257.9,1014.1,99.4,24.8,78.9,6.8,5,,2024-08-16T06:25:37,2024-08-16T21:02:29,0.39,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-17,22.7,12.4,18.2,22.7,12.4,18.2,12.5,71.9,0.636,100,8.33,rain,0,0,20.7,10.7,52.6,1013.4,57.3,36.3,237.7,20.5,8,,2024-08-17T06:27:16,2024-08-17T21:00:24,0.42,"Rain, Partially cloudy",Becoming cloudy in the afternoon with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-18,21.9,13.7,17.7,21.9,13.7,17.7,12.7,73.9,0,0,0,,0,0,34,20.6,315.2,1012.6,80.9,32.3,194.5,16.9,8,,2024-08-18T06:28:55,2024-08-18T20:58:18,0.46,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-19,22.8,11.7,18,22.8,11.7,18,11.9,69,0,0,0,,0,0,31.4,20.4,172.6,1017.3,49.1,28.7,204.4,17.7,6,,2024-08-19T06:30:34,2024-08-19T20:56:11,0.5,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-20,23,16,18.3,23,16,18.3,15,81.7,9.017,100,37.5,rain,0,0,47.3,29.7,189.3,1010.8,93.5,17,90.5,7.8,4,,2024-08-20T06:32:14,2024-08-20T20:54:03,0.52,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,06356099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,EHAM,06344099999" +"Amsterdam,Netherlands",2024-08-21,19,13.4,16.4,19,13.4,16.4,10.4,68.5,3.655,100,25,rain,0,0,48.8,31.3,257.1,1014.9,68.5,32.4,208.2,18.1,9,,2024-08-21T06:33:53,2024-08-21T20:51:53,0.56,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-22,21.8,16,18.7,21.8,16,18.7,12.1,66.6,0,0,0,,0,0,53.9,37.2,211.5,1010,98.8,31.8,121.6,10.6,5,,2024-08-22T06:35:33,2024-08-22T20:49:43,0.59,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-23,21.9,15.8,19.6,21.9,15.8,19.6,14.3,72.1,0.848,100,8.33,rain,0,0,68.9,44.3,219.2,1005.2,91.6,33.4,117.1,10.2,6,,2024-08-23T06:37:12,2024-08-23T20:47:33,0.63,"Rain, Overcast",Cloudy skies throughout the day with afternoon rain.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-24,25.5,15.2,18.3,25.5,15.2,18.3,15.7,85.6,10.326,100,41.67,rain,0,0,80.1,36.7,191,1006,97.5,26.5,89.4,8,6,,2024-08-24T06:38:51,2024-08-24T20:45:21,0.66,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-25,19.9,13.6,16.8,19.9,13.6,16.8,11.4,71.4,4.947,100,20.83,rain,0,0,42.6,30.2,238.1,1016.9,60.2,32.9,160,13.8,7,,2024-08-25T06:40:31,2024-08-25T20:43:08,0.7,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-26,20.7,14.4,17.2,20.7,14.4,17.2,13,76.9,0.97,100,20.83,rain,0,0,42.2,27.8,211.8,1020.6,78.1,30.2,186.5,16.1,7,,2024-08-26T06:42:10,2024-08-26T20:40:55,0.75,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-27,23.6,12.8,18.2,23.6,12.8,18.2,13,74.1,0.721,100,8.33,rain,0,0,27.7,16.6,161.8,1020.8,63.1,25.2,213,18.7,7,,2024-08-27T06:43:50,2024-08-27T20:38:41,0.77,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-28,28.2,13.9,21,29,13.9,21.2,15.4,72.2,0.009,100,4.17,rain,0,0,30.3,19.5,126.1,1015.3,16.9,26.7,220.1,19,8,,2024-08-28T06:45:29,2024-08-28T20:36:26,0.8,Rain,Clear conditions throughout the day with afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-29,22.8,15.1,19.7,22.8,15.1,19.7,16.2,81.1,0.009,100,4.17,rain,0,0,30,20.8,275.1,1016.1,81.3,23.4,174.9,15,8,,2024-08-29T06:47:09,2024-08-29T20:34:11,0.84,"Rain, Partially cloudy",Partly cloudy throughout the day with afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-30,21.6,12.5,17,21.6,12.5,17,12.7,78,0.009,100,4.17,rain,0,0,29.4,20.2,33,1022.6,97.2,24.3,196.9,16.9,7,,2024-08-30T06:48:48,2024-08-30T20:31:55,0.87,"Rain, Overcast",Cloudy skies throughout the day with afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-08-31,21.6,15.4,18.2,21.6,15.4,18.2,12.7,71,0.009,100,4.17,rain,0,0,45.4,30.8,60,1023.5,59.2,27.2,195.5,16.8,6,,2024-08-31T06:50:28,2024-08-31T20:29:38,0.91,"Rain, Partially cloudy",Clearing in the afternoon with afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-01,27.8,15.7,21,29,15.7,21.2,15.8,72.9,0,0,0,,0,0,33.6,22.5,74.3,1016.2,67.3,28.9,173,15,7,,2024-09-01T06:52:07,2024-09-01T20:27:21,0.94,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-02,27,18.3,22.2,28.1,18.3,22.3,18.3,79.5,0.656,100,12.5,rain,0,0,27.1,15.8,240.5,1011.9,84.8,24.7,178.2,15.3,7,,2024-09-02T06:53:46,2024-09-02T20:25:03,0.98,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-03,23.1,17.3,19.8,23.1,17.3,19.8,17.5,86.6,8.288,100,29.17,rain,0,0,28.1,20.4,218.2,1013.5,98.3,16.8,72,6.2,3,,2024-09-03T06:55:26,2024-09-03T20:22:45,0,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-04,20.4,16.5,18.3,20.4,16.5,18.3,16.6,90.5,1.983,100,25,rain,0,0,20.2,12.8,188,1015.7,99.8,17.9,64.5,5.6,5,,2024-09-04T06:57:05,2024-09-04T20:20:26,0.04,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-05,27.6,15.7,21.1,28.8,15.7,21.3,17.4,81,0.009,100,4.17,rain,0,0,45,28.1,49.3,1011.7,71.9,18.7,138.6,12.1,7,,2024-09-05T06:58:44,2024-09-05T20:18:07,0.08,"Rain, Partially cloudy",Partly cloudy throughout the day with afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-06,26.3,18.6,22,26.3,18.6,22,15.8,69.1,5.645,100,20.83,rain,0,0,32.5,21.3,89.4,1010.1,31.2,22.2,165.3,14.4,7,,2024-09-06T07:00:23,2024-09-06T20:15:47,0.11,"Rain, Partially cloudy",Becoming cloudy in the afternoon with late afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-07,24.6,16.8,20.6,24.6,16.8,20.6,17.5,83.6,1.292,100,12.5,rain,0,0,21.7,13.5,119.9,1011.1,94,20.6,156.4,13.4,7,,2024-09-07T07:02:03,2024-09-07T20:13:27,0.14,"Rain, Overcast",Cloudy skies throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-08,22.3,15.5,19.7,22.3,15.5,19.7,15,75.4,0.777,100,20.83,rain,0,0,39.5,27.3,172.2,1007.5,80.5,33.8,142,12.3,7,,2024-09-08T07:03:42,2024-09-08T20:11:07,0.18,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-09,20.5,14.4,16.7,20.5,14.4,16.7,13.1,79.6,0.836,100,25,rain,0,0,45.5,29.2,305,1005,88.2,34.9,109.1,9.6,6,,2024-09-09T07:05:21,2024-09-09T20:08:46,0.21,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999,EHAM" +"Amsterdam,Netherlands",2024-09-10,17.2,13.1,15.1,17.2,13.1,15.1,11.9,81.7,12.151,100,50,rain,0,0,55.1,40.4,231.1,1007.3,98.8,20.5,40,3.3,2,,2024-09-10T07:07:01,2024-09-10T20:06:25,0.24,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-11,13.8,9,11.8,13.8,7,11.6,8.2,79.6,18.236,100,79.17,rain,0,0,54.3,35.6,266.8,1004.6,74.5,27.6,101,8.7,5,,2024-09-11T07:08:40,2024-09-11T20:04:04,0.25,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-12,13.9,8,10.5,13.9,6.1,9.7,7.6,83.1,8.291,100,41.67,rain,0,0,27.5,19,272.2,1012.1,73.9,33.4,112.2,9.6,6,,2024-09-12T07:10:19,2024-09-12T20:01:43,0.31,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-13,16.8,6.9,11.7,16.8,5.7,11.5,7.8,78.6,0.388,100,16.67,rain,0,0,36.7,23.7,341.8,1023.8,42.7,25,128.5,11,7,,2024-09-13T07:11:59,2024-09-13T19:59:21,0.34,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,EHRD,06348099999,06249099999,C0449,06240099999,EHLE,EHKD,06257099999,EHAM" +"Amsterdam,Netherlands",2024-09-14,17.2,5.7,11.8,17.2,5.7,11.8,7.2,75.3,0.055,100,4.17,rain,0,0,26.8,17,270.6,1030.4,58.4,35.2,106.6,9.1,5,,2024-09-14T07:13:38,2024-09-14T19:56:59,0.38,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-15,18.7,8.9,13.9,18.7,7.8,13.6,10.3,79.5,0.018,100,4.17,rain,0,0,25,17,227.3,1027,57.9,28.1,96.5,8.2,4,,2024-09-15T07:15:17,2024-09-15T19:54:37,0.41,"Rain, Partially cloudy",Partly cloudy throughout the day with early morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-16,19,12.2,15.5,19,12.2,15.5,12.6,83.9,0.343,100,20.83,rain,0,0,32.9,21.1,357.5,1026,74.8,24.9,91.4,8,4,,2024-09-16T07:16:57,2024-09-16T19:52:15,0.44,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-17,19,12.5,16.3,19,12.5,16.3,13.3,82.7,0.105,100,4.17,rain,0,0,42.9,27.7,35.4,1029.6,85.7,31.8,131.6,11.2,6,,2024-09-17T07:18:37,2024-09-17T19:49:53,0.48,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,E5029,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-18,21,14.3,17,21,14.3,17,14.4,85.4,0,0,0,,0,0,37.6,23.5,50.4,1028.3,56.1,15.7,144.6,12.5,6,,2024-09-18T07:20:16,2024-09-18T19:47:31,0.5,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-19,21,15.1,17.2,21,15.1,17.2,15.1,87.8,0.014,100,4.17,rain,0,0,31.9,22.3,52.7,1025.5,21.1,7.3,104.3,9,6,,2024-09-19T07:21:56,2024-09-19T19:45:08,0.54,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-20,22.4,15.1,17.8,22.4,15.1,17.8,13.4,77,0.009,100,4.17,rain,0,0,39.6,24.8,73.4,1022.2,11.6,20.4,149.9,13,6,,2024-09-20T07:23:36,2024-09-20T19:42:46,0.58,Rain,Clear conditions throughout the day with late afternoon rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-09-21,23.2,12.7,17.5,23.2,12.7,17.5,13.4,77.8,0,0,0,,0,0,21.3,16.6,80.1,1019.9,2.2,24.8,157.3,13.5,6,,2024-09-21T07:25:16,2024-09-21T19:40:24,0.61,Clear,Clear conditions throughout the day.,clear-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-22,23.2,13.6,17.9,23.2,13.6,17.9,14.5,81.4,0.13,100,8.33,rain,0,0,23.2,17,97.5,1014.9,88,23.1,151.1,13.1,8,,2024-09-22T07:26:56,2024-09-22T19:38:02,0.65,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-23,20.6,14.8,17.4,20.6,14.8,17.4,14.4,83,0.369,100,20.83,rain,0,0,29.6,23.4,176.5,1006.8,50.4,12.6,77.8,6.5,6,,2024-09-23T07:28:36,2024-09-23T19:35:40,0.68,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"D3248,06260099999,E5029,06348099999,06249099999,06240099999,C0449,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-24,17.3,11.9,14.3,17.3,11.9,14.3,12.4,88.8,1.494,100,20.83,rain,0,0,32,23.4,209.8,1002,49.3,10.7,54.9,4.8,3,,2024-09-24T07:30:17,2024-09-24T19:33:18,0.75,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,E5029,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999" +"Amsterdam,Netherlands",2024-09-25,16.8,14.1,14.9,16.8,14.1,14.9,11.9,82,2.543,100,12.5,rain,0,0,37.1,18.9,199.1,1000.9,70.9,13.3,48.1,4.2,2,,2024-09-25T07:31:57,2024-09-25T19:30:56,0.75,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-26,18.1,14,15.9,18.1,14,15.9,13.7,87.4,12.356,100,50,rain,0,0,46.9,31.2,194.9,988.8,55.6,13.8,86.1,7.4,5,,2024-09-26T07:33:38,2024-09-26T19:28:34,0.78,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-27,15.1,11.4,12.8,15.1,11.4,12.8,10,83,25.278,100,54.17,rain,0,0,66.4,45.7,228.5,994.4,78.1,12.2,26.5,2.4,2,,2024-09-27T07:35:19,2024-09-27T19:26:13,0.82,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-09-28,14,8.3,10.8,14,7.1,10.4,6.9,77.1,10.955,100,41.67,rain,0,0,42.4,26.5,315.8,1018.2,37.8,14.9,101.3,8.9,5,,2024-09-28T07:37:00,2024-09-28T19:23:52,0.85,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,06330099999,EHLE,EHKD,06275099999,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-09-29,14.1,6.1,10.3,14.1,4.5,9.7,6.7,79.8,0.572,100,4.17,rain,0,0,28.6,22,151.7,1025.1,30.5,14.2,119.3,10.3,5,,2024-09-29T07:38:42,2024-09-29T19:21:31,0.89,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,06356099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06235099999" +"Amsterdam,Netherlands",2024-09-30,14.9,9,11.5,14.9,5.8,10.5,9.1,85.7,8.691,100,37.5,rain,0,0,48.2,30.1,135.9,1009.1,74.5,12.9,35.1,3.1,2,,2024-09-30T07:40:23,2024-09-30T19:19:10,0.92,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,06356099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-10-01,14.2,12.1,13.4,14.2,12.1,13.4,12.4,93.9,13.099,100,37.5,rain,0,0,42.8,26.8,187.5,1003.6,81.2,10.1,21.2,1.9,1,,2024-10-01T07:42:05,2024-10-01T19:16:50,0.95,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-02,13.6,11,12.1,13.6,11,12.1,9.8,86.2,3.896,100,25,rain,0,0,39.6,26.2,49.6,1011.4,72.9,12.2,35.4,2.9,2,,2024-10-02T07:43:47,2024-10-02T19:14:30,0,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-03,15,5.8,10.5,15,3.9,9.7,6.6,77.9,0.022,100,8.33,rain,0,0,37.3,25.8,43.1,1020,14.5,16.8,121.7,10.6,6,,2024-10-03T07:45:29,2024-10-03T19:12:10,0.02,Rain,Clear conditions throughout the day with rain.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-04,15,4.5,9.3,15,4.5,9.2,6.3,83.5,0,0,0,,0,0,16.4,10.9,69.5,1021.7,9.7,12.8,110.1,9.7,5,,2024-10-04T07:47:12,2024-10-04T19:09:51,0.06,Clear,Clear conditions throughout the day.,clear-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-05,15.2,4.3,9.4,15.2,3.4,9.1,6.2,82.3,0.014,100,4.17,rain,0,0,22.2,13.3,114.8,1018.4,8,12.4,129.2,11.2,6,,2024-10-05T07:48:55,2024-10-05T19:07:32,0.09,Rain,Clear conditions throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-06,15.1,7.1,10.8,15.1,4.7,9.8,7.7,81.5,0,0,0,,0,0,36.4,27.8,125.5,1006.8,50.5,15.5,107.7,9.2,6,,2024-10-06T07:50:38,2024-10-06T19:05:14,0.12,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-07,18,12.8,15.2,18,12.8,15.2,12.2,82.8,0.202,100,12.5,rain,0,0,36.8,26.6,189.1,1000.1,62,14.6,101.9,8.9,4,,2024-10-07T07:52:21,2024-10-07T19:02:56,0.16,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-08,17.2,13.9,15.6,17.2,13.9,15.6,13.1,85.4,0.143,100,16.67,rain,0,0,35.3,25.7,180.7,996.6,60,15.2,69.5,5.8,3,,2024-10-08T07:54:05,2024-10-08T19:00:39,0.19,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-09,16.1,12.1,14.3,16.1,12.1,14.3,12.3,87.8,0.334,100,20.83,rain,0,0,39.7,26.7,168.1,989.2,55.4,15.7,41.5,3.7,2,,2024-10-09T07:55:49,2024-10-09T18:58:23,0.23,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-10,13.7,9.3,12,13.7,7.9,11.9,9,82.4,0.347,100,20.83,rain,0,0,44,26.3,323,997.3,59.3,12.6,63,5.3,3,,2024-10-10T07:57:33,2024-10-10T18:56:07,0.25,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-11,13,5.4,8.9,13,3.7,8.3,5.2,78.6,2.067,100,16.67,rain,0,0,26.2,16.2,227.6,1014.8,33.2,15.4,100.2,8.5,6,,2024-10-11T07:59:18,2024-10-11T18:53:51,0.29,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-12,12.1,4.1,8.7,12.1,3.3,7.8,6.7,87.6,0.104,100,4.17,rain,0,0,42,32.7,164.6,1010.4,51.7,13.3,49.4,4.2,3,,2024-10-12T08:01:02,2024-10-12T18:51:37,0.33,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-13,13.5,8.3,10.8,13.5,6,10.4,6.1,72.6,7.684,100,41.67,rain,0,0,55.6,38.6,282.2,1012.7,46.9,14.4,52.3,4.5,2,,2024-10-13T08:02:48,2024-10-13T18:49:23,0.36,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-14,12,5.2,8.5,12,4.2,7.8,6.3,86.4,0.116,100,8.33,rain,0,0,16.8,11.9,108.4,1017.9,40.3,12.6,44.6,3.7,3,,2024-10-14T08:04:33,2024-10-14T18:47:10,0.4,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-15,14,4.7,9.4,14,2.3,8.2,6.7,84,0,0,0,,0,0,34.8,22.5,100.7,1018.8,44,13.6,87.4,7.5,4,,2024-10-15T08:06:19,2024-10-15T18:44:57,0.43,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999" +"Amsterdam,Netherlands",2024-10-16,19.7,10.9,15,19.7,10.9,15,12,82.6,0,0,0,,0,0,40,26.2,125.9,1009.4,46.9,14.9,75.2,6.4,3,,2024-10-16T08:08:05,2024-10-16T18:42:46,0.46,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-17,18.6,14.4,16.4,18.6,14.4,16.4,14.4,88.2,0.25,100,25,rain,0,0,36.1,25.7,182.9,1009.4,67.9,15.1,25.5,2.3,2,,2024-10-17T08:09:51,2024-10-17T18:40:35,0.5,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-18,17.2,13.9,15.2,17.2,13.9,15.2,14.4,95.4,0.293,100,25,rain,0,0,16.2,11.1,359.3,1013.7,75.4,6.7,37.2,3.1,3,,2024-10-18T08:11:38,2024-10-18T18:38:26,0.53,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-19,15.9,13.9,14.7,15.9,13.9,14.7,12.9,89.5,0.986,100,16.67,rain,0,0,31.6,22,187.3,1013.5,76.3,11.4,36.3,3.1,2,,2024-10-19T08:13:25,2024-10-19T18:36:17,0.56,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-20,17.2,13.4,15.3,17.2,13.4,15.3,13,86.5,0.808,100,20.83,rain,0,0,51.2,35.3,185.3,1015,82.7,14.1,37,3.2,2,,2024-10-20T08:15:13,2024-10-20T18:34:09,0.6,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-21,15.6,11.3,14.2,15.6,11.3,14.2,12.4,88.8,0.973,100,25,rain,0,0,44,26.3,218,1020.2,59.6,11.1,17.9,1.4,1,,2024-10-21T08:17:00,2024-10-21T18:32:02,0.63,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-22,15.9,9.1,12.4,15.9,7.3,12.3,10,86.1,6.662,100,25,rain,0,0,36.4,24.7,224.6,1026.7,38.6,12.1,62,5.4,3,,2024-10-22T08:18:48,2024-10-22T18:29:57,0.66,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-23,14.6,9.3,11.3,14.6,8.1,11.2,10.8,96.4,0,0,0,,0,0,20.9,12.1,157.3,1032.8,53.6,4.9,29.5,2.6,1,,2024-10-23T08:20:36,2024-10-23T18:27:52,0.7,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-24,13.9,7,10.4,13.9,5.2,9.6,8.9,90.7,0.128,100,4.17,rain,0,0,31.2,17.4,121.1,1024.7,22,7.9,70.8,6.2,4,,2024-10-24T08:22:25,2024-10-24T18:25:49,0.75,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,06356099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-25,18.7,10.3,13.7,18.7,10.3,13.7,12.1,90.5,0.009,100,4.17,rain,0,0,22,14.7,145.3,1016.8,38.7,10,84.1,7.3,4,,2024-10-25T08:24:13,2024-10-25T18:23:47,0.76,"Rain, Partially cloudy",Clearing in the afternoon with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-26,19.7,10.4,14.4,19.7,10.4,14.4,13,91.8,0,0,0,,0,0,19.6,14.2,129.5,1016,31.1,8,81,7.1,4,,2024-10-26T08:26:02,2024-10-26T18:21:46,0.8,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-10-27,15.9,10.1,13.4,15.9,10.1,13.4,11.2,86.8,0.071,100,12.5,rain,0,0,27.2,19,257.2,1019.5,57.5,11.4,78.8,7,5,,2024-10-27T07:27:51,2024-10-27T17:19:46,0.83,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-28,15.5,9.9,12.7,15.5,8.3,12.5,11.5,92.9,1.034,100,33.33,rain,0,0,38.4,28.3,212.4,1021.8,65.2,9.2,29,2.5,2,,2024-10-28T07:29:41,2024-10-28T17:17:48,0.86,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-29,15.1,13.1,13.9,15.1,13.1,13.9,13.3,96,3.475,100,58.33,rain,0,0,29.2,19,218.6,1023.2,90,7.5,27,2.3,1,,2024-10-29T07:31:30,2024-10-29T17:15:51,0.9,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06356099999,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-30,14.8,10.6,12.9,14.8,10.6,12.9,11.9,93.9,1.222,100,29.17,rain,0,0,11.9,8.3,298.8,1027.5,91.5,11.3,21.8,1.7,1,,2024-10-30T07:33:20,2024-10-30T17:13:56,0.93,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-10-31,14.2,9.7,12.6,14.2,8.4,12.6,10.6,87.6,0.077,100,8.33,rain,0,0,21.6,16.2,230.2,1027,83.4,10.8,30.2,2.6,2,,2024-10-31T07:35:10,2024-10-31T17:12:02,0.96,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-01,12.8,11.2,12,12.8,11.2,12,10.5,90.6,0,0,0,,0,0,29.6,19.8,225,1023.7,91.8,6.7,11.7,0.9,1,,2024-11-01T07:36:59,2024-11-01T17:10:10,0,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-02,12.1,5.7,10.2,12.1,3.9,9.7,7.4,83.7,0.207,100,25,rain,0,0,23.6,16.7,58.8,1030.7,50.9,12,60.4,5.3,3,,2024-11-02T07:38:49,2024-11-02T17:08:19,0.03,"Rain, Partially cloudy",Clearing in the afternoon with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-03,12.5,2.9,6.6,12.5,1,5.4,4.9,89.5,0,0,0,,0,0,14.8,10.1,76.5,1030.1,4.9,10.9,76.5,6.6,3,,2024-11-03T07:40:39,2024-11-03T17:06:30,0.07,Clear,Clear conditions throughout the day.,clear-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-04,12.6,3.4,7.5,12.6,1,5.9,6,90.6,0.014,100,4.17,rain,0,0,26,19.7,81.3,1027.2,31.3,10.2,71.5,6.2,3,,2024-11-04T07:42:29,2024-11-04T17:04:43,0.1,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-11-05,11.6,4,7.1,11.6,1.4,5.8,5.6,90.9,0.062,100,4.17,rain,0,0,22.8,13.1,131.9,1023.6,23,8.2,58.7,5.1,3,,2024-11-05T07:44:19,2024-11-05T17:02:57,0.14,"Rain, Partially cloudy",Partly cloudy throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-06,11.1,7.2,9,11.1,5.7,8.4,8,93.7,0,0,0,,0,0,11.5,8.8,161.3,1029.9,92.8,4.2,22.6,1.8,1,,2024-11-06T07:46:09,2024-11-06T17:01:13,0.17,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-07,9.1,4.1,7,8.6,0.5,5,6,93.4,0,0,0,,0,0,23.6,16.3,105.2,1032.6,95.8,4.1,15.5,1.3,1,,2024-11-07T07:47:58,2024-11-07T16:59:31,0.21,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-08,5,4.1,4.6,3.2,0.3,1.5,3.5,93,0,0,0,,0,0,25.9,17.8,107.5,1028.1,93.4,6.2,8.8,0.8,0,,2024-11-08T07:49:48,2024-11-08T16:57:51,0.24,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-09,7.9,5.1,6.3,6.9,3.1,5,5.2,92.8,0.22,100,25,rain,0,0,17.2,12,131.9,1024.9,93.3,5.6,9.8,0.8,1,,2024-11-09T07:51:37,2024-11-09T16:56:13,0.25,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-10,10.1,7.9,8.9,10.1,6.1,7.8,8.2,95.2,0.404,100,8.33,rain,0,0,17,11.9,181.3,1026.8,89,5.9,6.4,0.6,0,,2024-11-10T07:53:26,2024-11-10T16:54:37,0.31,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-11,11.8,9.1,10.5,11.8,7.4,10.1,8.2,85.8,2.623,100,29.17,rain,0,0,42.4,29.4,323.1,1028.5,52.6,10.3,39.2,3.4,2,,2024-11-11T07:55:14,2024-11-11T16:53:03,0.35,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-12,10.3,7.2,8.9,10.3,5.5,7,6.6,85.9,2.552,100,8.33,rain,0,0,39.2,24.4,36,1032.6,58.8,12.5,50.7,4.4,3,,2024-11-12T07:57:02,2024-11-12T16:51:31,0.38,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-13,12,5,9,12,5,9,7.6,90.8,0,0,0,,0,0,20.4,14,315.3,1032.1,55.6,10.3,22.3,2,2,,2024-11-13T07:58:50,2024-11-13T16:50:02,0.42,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,EHRD,06348099999,06249099999,C0449,06240099999,EHLE,06269099999,06257099999,06344099999,EHAM" +"Amsterdam,Netherlands",2024-11-14,11.3,7.9,10.1,11.3,7.3,9.9,8.5,90.2,0.642,100,25,rain,0,0,26.7,14.7,329.1,1028.3,90,11.5,25.6,2.3,2,,2024-11-14T08:00:37,2024-11-14T16:48:34,0.45,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06356099999,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-15,10.9,7.1,9.3,10.9,6.4,8.6,8.2,92.9,0.271,100,12.5,rain,0,0,23.9,18.2,214.5,1026.2,91.2,9.2,15.1,1.4,1,,2024-11-15T08:02:23,2024-11-15T16:47:09,0.5,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06356099999,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-16,10.1,8.5,9.5,10.1,5.9,7.3,7.7,88.7,0.795,100,29.17,rain,0,0,37.2,25.7,219.7,1016.5,91.5,9.4,14.3,1.3,1,,2024-11-16T08:04:09,2024-11-16T16:45:46,0.52,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-17,9.9,5.9,8.2,8.4,3.2,5.2,4.3,76.8,3.553,100,54.17,rain,0,0,44.4,32.3,276.7,1009.7,58.6,14.6,30,2.7,3,,2024-11-17T08:05:54,2024-11-17T16:44:26,0.55,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,06356099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-11-18,8.9,3.9,5.8,5.9,1.1,3.6,2.2,78.4,2.5,100,29.17,rain,0,0,57.6,21.4,281.1,1008.6,39.6,9.8,29.1,2.6,2,,2024-11-18T08:07:39,2024-11-18T16:43:08,0.58,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"D3248,EHRD,C0449,EHLE,EHKD,EHAM" +"Amsterdam,Netherlands",2024-11-19,5,2,4,2.4,-2.1,0.7,2.9,92.5,13.5,100,62.5,rain,0.1,0,47.9,32.6,39.9,994.6,68.7,8.8,12,1.1,1,,2024-11-19T08:09:22,2024-11-19T16:41:53,0.62,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain or snow throughout the day.,snow,"D3248,EHRD,C0449,EHLE,EHKD,EHAM" +"Amsterdam,Netherlands",2024-11-20,5.7,1.1,3.6,2.5,-2.7,-0.1,1,83.4,1,100,33.33,rain,0,0,55.4,38.7,281.9,999.2,59.2,9.3,16.3,1.5,1,,2024-11-20T08:11:05,2024-11-20T16:40:40,0.65,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"D3248,EHRD,C0449,06240099999,EHLE,EHKD,06269099999,EHAM" +"Amsterdam,Netherlands",2024-11-21,4.7,0,2.1,1.3,-3.7,-1.5,-1.1,80,1.7,100,41.67,"rain,snow",0.1,0,55.4,24.5,272.8,997.8,45,9.9,31.5,2.8,4,,2024-11-21T08:12:46,2024-11-21T16:39:30,0.68,"Snow, Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain or snow throughout the day.,snow,"D3248,06260099999,EHRD,06348099999,06249099999,C0449,06240099999,EHLE,EHKD,06269099999,EHAM,06257099999" +"Amsterdam,Netherlands",2024-11-22,6.5,1.4,4,2.7,-2.5,0.1,0.9,80.3,11.495,100,75,"rain,snow",0,0,59.7,40.2,265.1,1000.9,64.2,13.7,10.7,0.9,1,,2024-11-22T08:14:27,2024-11-22T16:38:23,0.71,"Snow, Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain or snow throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-23,8.9,2,4.3,4.9,-2.7,-0.2,2.2,86.2,3.886,100,37.5,rain,0,0,54.8,39.2,181.5,1010.2,58.4,14.1,12.9,1.2,1,,2024-11-23T08:16:06,2024-11-23T16:37:18,0.75,"Rain, Partially cloudy",Becoming cloudy in the afternoon with a chance of rain throughout the day.,rain,"06260099999,D3248,06356099999,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-24,16.4,9.9,14,16.4,6.2,13.8,8.4,69.5,9.312,100,12.5,rain,0,0,61.2,42.3,192.7,1002,64.9,17.1,27.9,2.6,2,,2024-11-24T08:17:44,2024-11-24T16:36:17,0.78,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-25,16.3,7.3,12.2,16.3,4.5,11.7,8.7,80.2,2.626,100,37.5,rain,0,0,58.3,37.5,203,1001.9,53.3,14.4,8.9,0.8,1,,2024-11-25T08:19:20,2024-11-25T16:35:18,0.81,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-26,9.8,3.9,7.4,6.6,1,4.4,5.3,86.7,2.521,100,20.83,rain,0,0,41.6,29.7,214.8,1014.8,40.9,12.2,26.7,2.3,2,,2024-11-26T08:20:56,2024-11-26T16:34:22,0.84,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-11-27,11,3.7,7.5,11,1.9,4.5,6.2,91.6,9.14,100,54.17,rain,0,0,84.1,56.1,218.9,1011.2,76.1,8.3,3.5,0.2,0,,2024-11-27T08:22:29,2024-11-27T16:33:29,0.88,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-28,9.7,5.4,7.3,7,3.4,5,3.8,78.2,5.758,100,25,rain,0,0,72.9,27.7,308.4,1024.3,53.3,15.9,31.2,2.6,2,,2024-11-28T08:24:01,2024-11-28T16:32:39,0.91,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-29,7.9,0.6,3.8,5.2,-1.8,1.8,1.6,85.9,0.163,100,4.17,"rain,snow",0,0,25.6,20.3,149.5,1030.7,44.3,13,42.6,3.8,2,,2024-11-29T08:25:31,2024-11-29T16:31:53,0.94,"Snow, Rain, Partially cloudy",Partly cloudy throughout the day with morning rain or snow.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-11-30,6.2,1.3,4,3.7,-3.3,0.6,1.6,84.2,0,0,0,,0,0,27.6,18,164.9,1026.7,56.6,13.5,30.8,2.8,2,,2024-11-30T08:27:00,2024-11-30T16:31:09,0.97,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-12-01,8.1,3.1,6.1,5,-0.8,2.9,3.1,81.4,1,100,12.5,rain,0,0,41,25.6,170.8,1018.7,82.2,9.4,35.3,3.1,2,,2024-12-01T08:28:26,2024-12-01T16:30:28,0,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"D3248,06260099999,EHRD,06348099999,06249099999,C0449,06240099999,EHLE,EHKD,06269099999,EHAM,06257099999" +"Amsterdam,Netherlands",2024-12-02,11,7.5,9.6,11,5.1,8.3,8.6,93.7,1.266,100,50,rain,0,0,36.4,24.5,212.1,1010.9,86,10.8,13,1.2,1,,2024-12-02T08:29:51,2024-12-02T16:29:51,0.04,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-03,8.7,3,5.9,6.1,-0.2,3.1,2.9,81.1,1.775,100,25,rain,0,0,41.2,25.5,319,1018.2,51.2,13.2,18.2,1.8,1,,2024-12-03T08:31:13,2024-12-03T16:29:17,0.08,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,C0449,06257099999,EHAM,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-12-04,6.1,1.2,4.2,4.4,-0.3,2.1,2.8,91,0.971,100,25,rain,0,0,20,14.3,187.4,1024.3,58,13.2,10.3,0.8,1,,2024-12-04T08:32:34,2024-12-04T16:28:47,0.11,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,C0449,EHAM,06257099999,D3248,EHRD,06348099999,06249099999,06240099999,EHLE,EHKD,06269099999,06235099999,06344099999" +"Amsterdam,Netherlands",2024-12-05,10.8,4.2,6.9,10.8,0,3.2,6.1,94.5,5.233,100,58.33,rain,0,0,50.4,36.9,182.3,1011.1,91.9,6.3,4.8,0.4,0,,2024-12-05T08:33:52,2024-12-05T16:28:20,0.15,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-06,11.1,5.5,8.8,11.1,2.4,5.2,5.2,78.3,14.869,100,37.5,rain,0,0,79.6,51,283.5,1007.2,75.6,11,13.9,1.1,1,,2024-12-06T08:35:08,2024-12-06T16:27:56,0.18,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-07,10,6,7.5,10,1.6,3.6,5.9,89.8,2.271,100,54.17,rain,0,0,54.7,37.1,180.5,993.5,80.7,11.2,17.3,1.5,2,,2024-12-07T08:36:21,2024-12-07T16:27:35,0.22,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-08,7.3,6.1,6.9,4.3,1.7,3.3,5.5,90.9,7.263,100,25,rain,0,0,42,26.5,43,1008.2,84.3,12.1,16.5,1.5,1,,2024-12-08T08:37:32,2024-12-08T16:27:18,0.25,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-09,7,5.9,6.4,3.1,1.3,2.2,3.5,81.7,0.153,100,8.33,rain,0,0,52.8,34.4,39.5,1027.2,74.2,15.4,8.8,0.8,1,,2024-12-09T08:38:40,2024-12-09T16:27:05,0.29,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-10,5.8,4.8,5,1.6,0.2,0.7,2.4,83.1,0.014,100,4.17,rain,0,0,40.8,27.2,51.9,1031.3,92.3,14.4,6.8,0.6,0,,2024-12-10T08:39:45,2024-12-10T16:26:55,0.33,"Rain, Overcast",Cloudy skies throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-11,4.8,3.1,3.9,2.5,0,1,1.6,85,0,0,0,,0,0,26,18,59.8,1032,96.1,11.4,6.9,0.6,0,,2024-12-11T08:40:48,2024-12-11T16:26:49,0.36,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-12,5,3.1,4.1,5,0.8,2,3.2,94,0.23,100,25,rain,0,0,20.4,12.3,129.6,1031.4,94,6.5,7.9,0.6,0,,2024-12-12T08:41:48,2024-12-12T16:26:46,0.4,"Rain, Overcast",Cloudy skies throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-13,3.9,0.6,2.1,1,-3.1,-1.4,0.5,89.2,0.049,100,4.17,rain,0,0,25.6,14.9,147.1,1027.1,92,8,5.5,0.4,0,,2024-12-13T08:42:45,2024-12-13T16:26:46,0.43,"Rain, Overcast",Cloudy skies throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-14,6.9,1.9,4.5,4.1,-2.4,0.9,3,90.1,0.716,100,50,rain,0,0,31.1,23.5,227.9,1018.6,82,7.9,8.3,0.7,0,,2024-12-14T08:43:39,2024-12-14T16:26:51,0.47,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-15,10.8,5.1,8.6,10.8,2.1,6.4,7.2,90.8,1.237,100,25,rain,0,0,44,32.2,244.8,1023.3,82.5,11.2,7.3,0.6,0,,2024-12-15T08:44:30,2024-12-15T16:26:58,0.5,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-16,10.9,9.7,10.4,10.9,6.4,9.1,8.2,86.5,0.056,100,16.67,rain,0,0,48.2,33.1,249.2,1027.7,78.8,13.5,6.8,0.5,0,,2024-12-16T08:45:18,2024-12-16T16:27:10,0.53,"Rain, Partially cloudy",Partly cloudy throughout the day with rain in the morning and afternoon.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-17,9.8,7.3,8.6,6.9,4.5,5.8,7.1,90.6,0,0,0,,0,0,34.4,24,212.9,1025,79.3,11.5,12.2,1.1,1,,2024-12-17T08:46:03,2024-12-17T16:27:25,0.57,Partially cloudy,Partly cloudy throughout the day.,partly-cloudy-day,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-18,12.8,6.4,10.2,12.8,2,8.4,8.4,88.4,0.254,100,25,rain,0,0,71.4,48.4,210.9,1009.3,80.5,11.8,5.7,0.5,0,,2024-12-18T08:46:45,2024-12-18T16:27:43,0.6,"Rain, Partially cloudy",Partly cloudy throughout the day with rain.,rain,"06260099999,D3248,EHRD,06348099999,06249099999,C0449,06240099999,EHLE,EHKD,06269099999,06257099999,EHAM" +"Amsterdam,Netherlands",2024-12-19,12.8,5.3,8.5,12.8,1.1,5.7,6,84.8,15.598,100,70.83,rain,0,0,67.2,43.4,267.6,999.9,71.3,11.6,7.5,0.6,0,,2024-12-19T08:47:23,2024-12-19T16:28:05,0.63,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-20,7.8,5,6.4,4.2,1.6,2.8,3.1,79.4,2.074,100,25,rain,0,0,48.1,27.6,248.1,1015.9,53.5,12.9,18.7,1.6,1,,2024-12-20T08:47:58,2024-12-20T16:28:30,0.66,"Rain, Partially cloudy",Becoming cloudy in the afternoon with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-21,10.7,7.1,8.5,10.7,3.1,5.5,7.1,91,3.895,100,54.17,rain,0,0,54.8,41.3,231,1008.6,75.3,10.2,9.5,0.9,1,,2024-12-21T08:48:30,2024-12-21T16:28:59,0.7,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-22,9.1,3.5,6.1,5.2,-1.1,1.7,2.6,78,2.824,100,37.5,rain,0,0,57.2,40.4,273.1,998.3,54.3,12.7,17.9,1.4,2,,2024-12-22T08:48:58,2024-12-22T16:29:32,0.75,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-23,8,3.2,6.4,4.4,1,2.8,3,79.1,10.719,100,37.5,rain,0,0,58.8,39,320.4,1013.9,44.9,12,18.8,1.6,1,,2024-12-23T08:49:23,2024-12-23T16:30:08,0.76,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-24,8.9,3.3,6.1,7,0.3,3.3,5.4,95.2,1.101,100,62.5,rain,0,0,27.6,19.6,207.6,1024.4,82.7,6.2,6.8,0.6,1,,2024-12-24T08:49:44,2024-12-24T16:30:47,0.79,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-25,9.8,8.9,9.3,8.5,6.6,7.5,8.9,97.6,0.606,100,29.17,rain,0,0,22.4,15.5,214.6,1032.4,95,3.6,4.4,0.5,0,,2024-12-25T08:50:02,2024-12-25T16:31:29,0.82,"Rain, Overcast",Cloudy skies throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-26,8.7,5.2,7.4,7.1,3.5,5.7,7,97.2,0.022,100,4.17,rain,0,0,20.4,14.3,176,1035.8,99,3.5,6.7,0.5,0,,2024-12-26T08:50:16,2024-12-26T16:32:15,0.86,"Rain, Overcast",Cloudy skies throughout the day with morning rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-27,5.1,2,3.3,4,0.1,2.1,3,98.3,0.083,100,8.33,rain,0,0,16.7,10.9,143.4,1033.4,92.6,2.1,18.4,1.6,1,,2024-12-27T08:50:27,2024-12-27T16:33:04,0.89,"Rain, Overcast",Cloudy skies throughout the day with rain clearing later.,rain,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-28,3.1,0.9,1.8,1.3,-1.9,-0.7,1.4,97.8,0,0,0,,0,0,20.2,14,196,1029.5,91.4,2.4,11.8,0.9,1,,2024-12-28T08:50:35,2024-12-28T16:33:56,0.92,Overcast,Cloudy skies throughout the day.,cloudy,"D3248,06260099999,06348099999,06249099999,06240099999,C0449,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-29,7,3.3,5.4,3.9,-0.2,2.2,4.8,96,0.316,100,33.33,rain,0,0,34.8,22.9,211.2,1027.7,91.6,4.3,4.6,0.5,0,,2024-12-29T08:50:39,2024-12-29T16:34:51,0.95,"Rain, Overcast",Cloudy skies throughout the day with rain.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-30,8.6,6.3,7.7,4.8,2.5,4.1,5.8,88.2,0.117,100,20.83,rain,0,0,46,31.1,229.1,1026.5,86.6,10.8,8.3,0.7,0,,2024-12-30T08:50:39,2024-12-30T16:35:50,0,"Rain, Partially cloudy",Partly cloudy throughout the day with rain clearing later.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" +"Amsterdam,Netherlands",2024-12-31,8,3.8,5.6,4.5,-1.5,0.9,4,89.9,0,0,0,,0,0,54.8,39.5,204.2,1021.9,94.4,9.6,7,0.6,0,,2024-12-31T08:50:36,2024-12-31T16:36:51,0.02,Overcast,Cloudy skies throughout the day.,cloudy,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06235099999,06257099999,06344099999" diff --git a/example/lib/presentation/samples/chart_samples.dart b/example/lib/presentation/samples/chart_samples.dart index e058a1e8d..3edec89c4 100644 --- a/example/lib/presentation/samples/chart_samples.dart +++ b/example/lib/presentation/samples/chart_samples.dart @@ -13,6 +13,7 @@ import 'line/line_chart_sample1.dart'; import 'line/line_chart_sample10.dart'; import 'line/line_chart_sample11.dart'; import 'line/line_chart_sample12.dart'; +import 'line/line_chart_sample13.dart'; import 'line/line_chart_sample2.dart'; import 'line/line_chart_sample3.dart'; import 'line/line_chart_sample4.dart'; @@ -43,6 +44,7 @@ class ChartSamples { LineChartSample(10, (context) => const LineChartSample10()), LineChartSample(11, (context) => const LineChartSample11()), LineChartSample(12, (context) => const LineChartSample12()), + LineChartSample(13, (context) => const LineChartSample13()), ], ChartType.bar: [ BarChartSample(1, (context) => BarChartSample1()), diff --git a/example/lib/presentation/samples/line/line_chart_sample13.dart b/example/lib/presentation/samples/line/line_chart_sample13.dart new file mode 100644 index 000000000..1d6c3ca71 --- /dev/null +++ b/example/lib/presentation/samples/line/line_chart_sample13.dart @@ -0,0 +1,493 @@ +import 'package:equatable/equatable.dart'; +import 'package:fl_chart/fl_chart.dart'; +import 'package:fl_chart_app/presentation/resources/app_resources.dart'; +import 'package:fl_chart_app/util/app_utils.dart'; +import 'package:fl_chart_app/util/csv_parser.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + + +class LineChartSample13 extends StatefulWidget { + const LineChartSample13({super.key}); + + @override + State createState() => _LineChartSample13State(); +} + +class _LineChartSample13State extends State { + List>? monthlyWeatherData; + int _currentMonthIndex = 0; + late final List monthsNames; + + final int minDays = 1; + final int maxDays = 31; + late final double overallMinTemp; + late final double overallMaxTemp; + + int _interactedSpotIndex = -1; + + @override + void initState() { + monthsNames = [ + 'January', + 'February', + 'March', + 'April', + 'May', + 'June', + 'July', + 'August', + 'September', + 'October', + 'November', + 'December', + ]; + _loadWeatherData(); + super.initState(); + } + + void _loadWeatherData() async { + final data = + await rootBundle.loadString('assets/data/amsterdam_2024_weather.csv'); + final rows = CsvParser.parse(data); + if (!mounted) { + return; + } + setState(() { + final allWeatherData = + rows.skip(1).map((row) => _WeatherData.fromCsv(row)).toList(); + monthlyWeatherData = List.generate(12, (index) { + final month = index + 1; + return allWeatherData + .where((element) => element.datetime.month == month) + .toList(); + }); + overallMinTemp = allWeatherData + .map((e) => e.temp) + .reduce((value, element) => value < element ? value : element); + overallMaxTemp = allWeatherData + .map((e) => e.temp) + .reduce((value, element) => value > element ? value : element); + }); + } + + @override + Widget build(BuildContext context) { + return Column( + children: [ + const SizedBox(height: 18), + Row( + mainAxisSize: MainAxisSize.min, + children: [ + const Text( + 'Amsterdam Weather 2024', + style: TextStyle( + color: AppColors.contentColorOrange, + fontSize: 20, + fontWeight: FontWeight.bold, + ), + ), + Tooltip( + message: 'Source: visualcrossing.com', + child: IconButton(onPressed: () { + AppUtils().tryToLaunchUrl( + 'https://www.visualcrossing.com/weather-history/Amsterdam,Netherlands/metric/2024-01-01/2024-12-31', + ); + }, icon: const Icon( + Icons.info_outline_rounded, + color: AppColors.contentColorOrange, + size: 18, + )), + ) + ], + ), + const SizedBox(height: 18), + Row( + children: [ + Expanded( + child: Align( + alignment: Alignment.centerRight, + child: IconButton( + onPressed: _canGoPrevious ? _previousMonth : null, + icon: const Icon(Icons.navigate_before_rounded), + ), + ), + ), + SizedBox( + width: 92, + child: Text( + monthsNames[_currentMonthIndex], + textAlign: TextAlign.center, + style: const TextStyle( + color: AppColors.contentColorBlue, + fontSize: 16, + fontWeight: FontWeight.bold, + ), + ), + ), + Expanded( + child: Align( + alignment: Alignment.centerLeft, + child: IconButton( + onPressed: _canGoNext ? _nextMonth : null, + icon: const Icon(Icons.navigate_next_rounded), + ), + ), + ), + ], + ), + const SizedBox(height: 18), + AspectRatio( + aspectRatio: 1.4, + child: Stack( + children: [ + if (monthlyWeatherData != null) + Padding( + padding: const EdgeInsets.only( + top: 0.0, + right: 18.0, + ), + child: LineChart( + LineChartData( + minY: overallMinTemp - 5, + maxY: overallMaxTemp + 5, + minX: 0, + maxX: 31, + lineBarsData: [ + LineChartBarData( + spots: monthlyWeatherData![_currentMonthIndex] + .asMap() + .entries + .map((e) { + final index = e.key; + final item = e.value; + final value = item.temp; + return FlSpot( + index.toDouble(), + value, + yError: FlErrorRange( + lowerBy: (item.tempmin - value).abs(), + upperBy: item.tempmax - value, + ), + ); + }).toList(), + isCurved: false, + dotData: const FlDotData(show: false), + color: AppColors.contentColorBlue, + barWidth: 1, + errorIndicatorData: FlErrorIndicatorData( + show: true, + painter: _errorPainter, + ), + ), + ], + gridData: FlGridData( + show: true, + drawHorizontalLine: true, + drawVerticalLine: false, + horizontalInterval: 5, + getDrawingHorizontalLine: _horizontalGridLines, + ), + titlesData: FlTitlesData( + show: true, + rightTitles: const AxisTitles( + sideTitles: SideTitles(showTitles: false), + ), + topTitles: const AxisTitles( + sideTitles: SideTitles(showTitles: false), + ), + leftTitles: AxisTitles( + drawBelowEverything: true, + sideTitles: SideTitles( + showTitles: true, + maxIncluded: false, + minIncluded: false, + reservedSize: 40, + getTitlesWidget: (double value, TitleMeta meta) { + return SideTitleWidget( + meta: meta, + child: Text( + '${meta.formattedValue}°', + ), + ); + } + ), + ), + bottomTitles: AxisTitles( + axisNameWidget: Container( + margin: const EdgeInsets.only(bottom: 20), + child: const Text( + 'Day of month', + style: TextStyle( + color: AppColors.contentColorGreen, + fontWeight: FontWeight.bold, + fontSize: 16, + ), + ), + ), + axisNameSize: 40, + sideTitles: SideTitles( + showTitles: true, + reservedSize: 38, + maxIncluded: false, + interval: 1, + getTitlesWidget: _bottomTitles, + ), + ), + ), + lineTouchData: LineTouchData( + enabled: true, + handleBuiltInTouches: false, + touchCallback: _touchCallback, + ), + ), + ), + ), + if (monthlyWeatherData == null) + const Center( + child: CircularProgressIndicator(), + ) + ], + ), + ), + ], + ); + } + + bool get _canGoNext => _currentMonthIndex < 11; + + bool get _canGoPrevious => _currentMonthIndex > 0; + + void _previousMonth() { + if (!_canGoPrevious) { + return; + } + + setState(() { + _currentMonthIndex--; + }); + } + + void _nextMonth() { + if (!_canGoNext) { + return; + } + setState(() { + _currentMonthIndex++; + }); + } + + FlSpotErrorRangePainter _errorPainter(FlSpot spot, + LineChartBarData bar, + int spotIndex,) => + FlSimpleErrorPainter( + lineWidth: 1.0, + lineColor: + _interactedSpotIndex == spotIndex ? Colors.white : Colors.white38, + ); + + FlLine _horizontalGridLines(double value) { + final isZero = value == 0.0; + return FlLine( + color: isZero ? Colors.white38 : Colors.blueGrey, + strokeWidth: isZero ? 0.8 : 0.4, + dashArray: isZero ? null : [8, 4], + ); + } + + Widget _bottomTitles(double value, TitleMeta meta) { + final day = value.toInt() + 1; + + final isDayHovered = _interactedSpotIndex == day - 1; + + final isImportantToShow = day % 5 == 0 || day == 1; + + if (!isImportantToShow && !isDayHovered) { + return const SizedBox(); + } + + return SideTitleWidget( + meta: meta, + child: Text( + day.toString(), + style: TextStyle( + color: isDayHovered + ? AppColors.contentColorWhite + : AppColors.contentColorGreen, + fontSize: 12, + fontWeight: FontWeight.bold, + ), + ), + ); + } + + _touchCallback(FlTouchEvent event, LineTouchResponse? touchResponse) { + if (!event.isInterestedForInteractions || + touchResponse?.lineBarSpots == null || + touchResponse!.lineBarSpots!.isEmpty) { + setState(() { + _interactedSpotIndex = -1; + }); + return; + } + + setState(() { + _interactedSpotIndex = touchResponse.lineBarSpots!.first.spotIndex; + }); + } + + @override + void dispose() { + super.dispose(); + } +} + +class _WeatherData with EquatableMixin { + final String name; + final DateTime datetime; + final double tempmax; + final double tempmin; + final double temp; + final double feelslikemax; + final double feelslikemin; + final double feelslike; + final double dew; + final double humidity; + final double precip; + final double precipprob; + final double precipcover; + final String preciptype; + final double snow; + final double snowdepth; + final double windgust; + final double windspeed; + final double winddir; + final double sealevelpressure; + final double cloudcover; + final double visibility; + final double solarradiation; + final double solarenergy; + final double uvindex; + final double severerisk; + final DateTime sunrise; + final DateTime sunset; + final double moonphase; + final String conditions; + final String description; + final String icon; + final String stations; + + const _WeatherData({ + required this.name, + required this.datetime, + required this.tempmax, + required this.tempmin, + required this.temp, + required this.feelslikemax, + required this.feelslikemin, + required this.feelslike, + required this.dew, + required this.humidity, + required this.precip, + required this.precipprob, + required this.precipcover, + required this.preciptype, + required this.snow, + required this.snowdepth, + required this.windgust, + required this.windspeed, + required this.winddir, + required this.sealevelpressure, + required this.cloudcover, + required this.visibility, + required this.solarradiation, + required this.solarenergy, + required this.uvindex, + required this.severerisk, + required this.sunrise, + required this.sunset, + required this.moonphase, + required this.conditions, + required this.description, + required this.icon, + required this.stations, + }); + + // parse from csv row + // name,datetime,tempmax,tempmin,temp,feelslikemax,feelslikemin,feelslike,dew,humidity,precip,precipprob,precipcover,preciptype,snow,snowdepth,windgust,windspeed,winddir,sealevelpressure,cloudcover,visibility,solarradiation,solarenergy,uvindex,severerisk,sunrise,sunset,moonphase,conditions,description,icon,stations + // "Amsterdam,Netherlands",2024-01-01,9.1,6.4,8,5.3,2.5,4.1,5.1,82.4,14.26,100,37.5,rain,0,0,53.9,40.2,225.9,1000.1,88.7,20.5,20.6,1.8,2,,2024-01-01T08:50:34,2024-01-01T16:37:06,0.68,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" + factory _WeatherData.fromCsv(List row) => + _WeatherData( + name: row[0], + datetime: DateTime.parse(row[1]), + tempmax: double.parse(row[2]), + tempmin: double.parse(row[3]), + temp: double.parse(row[4]), + feelslikemax: double.parse(row[5]), + feelslikemin: double.parse(row[6]), + feelslike: double.parse(row[7]), + dew: double.parse(row[8]), + humidity: double.parse(row[9]), + precip: double.parse(row[10]), + precipprob: double.parse(row[11]), + precipcover: double.parse(row[12]), + preciptype: row[13], + snow: double.parse(row[14]), + snowdepth: double.parse(row[15]), + windgust: double.parse(row[16]), + windspeed: double.parse(row[17]), + winddir: double.parse(row[18]), + sealevelpressure: double.parse(row[19]), + cloudcover: double.parse(row[20]), + visibility: double.parse(row[21]), + solarradiation: double.parse(row[22]), + solarenergy: double.parse(row[23]), + uvindex: double.parse(row[24]), + severerisk: row[25].isEmpty ? 0 : double.parse(row[25]), + sunrise: DateTime.parse(row[26]), + sunset: DateTime.parse(row[27]), + moonphase: double.parse(row[28]), + conditions: row[29], + description: row[30], + icon: row[31], + stations: row[32], + ); + + @override + List get props => + [ + name, + datetime, + tempmax, + tempmin, + temp, + feelslikemax, + feelslikemin, + feelslike, + dew, + humidity, + precip, + precipprob, + precipcover, + preciptype, + snow, + snowdepth, + windgust, + windspeed, + winddir, + sealevelpressure, + cloudcover, + visibility, + solarradiation, + solarenergy, + uvindex, + severerisk, + sunrise, + sunset, + moonphase, + conditions, + description, + icon, + stations, + ]; +} diff --git a/example/lib/presentation/samples/line/line_chart_sample2.dart b/example/lib/presentation/samples/line/line_chart_sample2.dart index 885eb7d5f..a22e2b3de 100644 --- a/example/lib/presentation/samples/line/line_chart_sample2.dart +++ b/example/lib/presentation/samples/line/line_chart_sample2.dart @@ -165,62 +165,13 @@ class _LineChartSample2State extends State { lineBarsData: [ LineChartBarData( spots: const [ - FlSpot( - 0, - 3, - yError: FlErrorRange( - upperBy: 0.5, - lowerBy: 0.5, - ), - ), - FlSpot( - 2.6, - 2, - yError: FlErrorRange( - upperBy: 0.5, - lowerBy: 0.5, - ), - ), - FlSpot( - 4.9, - 5, - yError: FlErrorRange( - upperBy: 0.5, - lowerBy: 0.5, - ), - ), - FlSpot( - 6.8, - 3.1, - yError: FlErrorRange( - upperBy: 0.5, - lowerBy: 0.5, - ), - ), - FlSpot( - 8, - 4, - yError: FlErrorRange( - upperBy: 0.5, - lowerBy: 0.5, - ), - ), - FlSpot( - 9.5, - 3, - yError: FlErrorRange( - upperBy: 0.5, - lowerBy: 0.5, - ), - ), - FlSpot( - 11, - 4, - yError: FlErrorRange( - upperBy: 0.5, - lowerBy: 0.5, - ), - ), + FlSpot(0, 3), + FlSpot(2.6, 2), + FlSpot(4.9, 5), + FlSpot(6.8, 3.1), + FlSpot(8, 4), + FlSpot(9.5, 3), + FlSpot(11, 4), ], isCurved: true, gradient: LinearGradient( @@ -231,17 +182,6 @@ class _LineChartSample2State extends State { dotData: const FlDotData( show: false, ), - errorIndicatorData: FlErrorIndicatorData( - painter: ( - FlSpot spot, - LineChartBarData bar, - int spotIndex, - ) => FlSimpleErrorPainter( - lineColor: - spotIndex % 2 == 0 ? Colors.greenAccent : Colors.blue, - lineWidth: 1, - ), - ), belowBarData: BarAreaData( show: true, gradient: LinearGradient( diff --git a/example/lib/util/csv_parser.dart b/example/lib/util/csv_parser.dart new file mode 100644 index 000000000..58911b5ec --- /dev/null +++ b/example/lib/util/csv_parser.dart @@ -0,0 +1,45 @@ +class CsvParser { + static List> parse(String rawCsvData) { + final lines = + rawCsvData.split('\n').where((line) => line.isNotEmpty).toList(); + final headers = _parseCsvLine(lines.first); + + return [ + headers, + ...lines.skip(1).map((line) => _parseCsvLine(line)), + ]; + } + + static List _parseCsvLine(String line) { + final values = []; + final buffer = StringBuffer(); + bool insideQuotes = false; + + for (int i = 0; i < line.length; i++) { + final char = line[i]; + + if (char == '"') { + if (insideQuotes && i + 1 < line.length && line[i + 1] == '"') { + // Handle escaped quotes + buffer.write('"'); + i++; // Skip the next quote + } else { + // Toggle the insideQuotes flag + insideQuotes = !insideQuotes; + } + } else if (char == ',' && !insideQuotes) { + // End of value + values.add(buffer.toString()); + buffer.clear(); + } else { + // Normal character + buffer.write(char); + } + } + + // Add the last value + values.add(buffer.toString()); + + return values; + } +} From 7ccc1caada8613e63de7ce75f8eef30a548836c6 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Fri, 10 Jan 2025 20:08:47 +0100 Subject: [PATCH 11/27] Add error text in the FlSimpleErrorPainter --- .../samples/line/line_chart_sample13.dart | 67 ++++++------- .../base/axis_chart/axis_chart_data.dart | 95 +++++++++++++++++++ 2 files changed, 129 insertions(+), 33 deletions(-) diff --git a/example/lib/presentation/samples/line/line_chart_sample13.dart b/example/lib/presentation/samples/line/line_chart_sample13.dart index 1d6c3ca71..2b31a088a 100644 --- a/example/lib/presentation/samples/line/line_chart_sample13.dart +++ b/example/lib/presentation/samples/line/line_chart_sample13.dart @@ -6,7 +6,6 @@ import 'package:fl_chart_app/util/csv_parser.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; - class LineChartSample13 extends StatefulWidget { const LineChartSample13({super.key}); @@ -48,14 +47,14 @@ class _LineChartSample13State extends State { void _loadWeatherData() async { final data = - await rootBundle.loadString('assets/data/amsterdam_2024_weather.csv'); + await rootBundle.loadString('assets/data/amsterdam_2024_weather.csv'); final rows = CsvParser.parse(data); if (!mounted) { return; } setState(() { final allWeatherData = - rows.skip(1).map((row) => _WeatherData.fromCsv(row)).toList(); + rows.skip(1).map((row) => _WeatherData.fromCsv(row)).toList(); monthlyWeatherData = List.generate(12, (index) { final month = index + 1; return allWeatherData @@ -89,15 +88,17 @@ class _LineChartSample13State extends State { ), Tooltip( message: 'Source: visualcrossing.com', - child: IconButton(onPressed: () { - AppUtils().tryToLaunchUrl( - 'https://www.visualcrossing.com/weather-history/Amsterdam,Netherlands/metric/2024-01-01/2024-12-31', - ); - }, icon: const Icon( - Icons.info_outline_rounded, - color: AppColors.contentColorOrange, - size: 18, - )), + child: IconButton( + onPressed: () { + AppUtils().tryToLaunchUrl( + 'https://www.visualcrossing.com/weather-history/Amsterdam,Netherlands/metric/2024-01-01/2024-12-31', + ); + }, + icon: const Icon( + Icons.info_outline_rounded, + color: AppColors.contentColorOrange, + size: 18, + )), ) ], ), @@ -199,19 +200,18 @@ class _LineChartSample13State extends State { leftTitles: AxisTitles( drawBelowEverything: true, sideTitles: SideTitles( - showTitles: true, - maxIncluded: false, - minIncluded: false, - reservedSize: 40, - getTitlesWidget: (double value, TitleMeta meta) { - return SideTitleWidget( - meta: meta, - child: Text( - '${meta.formattedValue}°', - ), - ); - } - ), + showTitles: true, + maxIncluded: false, + minIncluded: false, + reservedSize: 40, + getTitlesWidget: (double value, TitleMeta meta) { + return SideTitleWidget( + meta: meta, + child: Text( + '${meta.formattedValue}°', + ), + ); + }), ), bottomTitles: AxisTitles( axisNameWidget: Container( @@ -277,13 +277,16 @@ class _LineChartSample13State extends State { }); } - FlSpotErrorRangePainter _errorPainter(FlSpot spot, - LineChartBarData bar, - int spotIndex,) => + FlSpotErrorRangePainter _errorPainter( + FlSpot spot, + LineChartBarData bar, + int spotIndex, + ) => FlSimpleErrorPainter( lineWidth: 1.0, lineColor: - _interactedSpotIndex == spotIndex ? Colors.white : Colors.white38, + _interactedSpotIndex == spotIndex ? Colors.white : Colors.white38, + showErrorTexts: _interactedSpotIndex == spotIndex, ); FlLine _horizontalGridLines(double value) { @@ -416,8 +419,7 @@ class _WeatherData with EquatableMixin { // parse from csv row // name,datetime,tempmax,tempmin,temp,feelslikemax,feelslikemin,feelslike,dew,humidity,precip,precipprob,precipcover,preciptype,snow,snowdepth,windgust,windspeed,winddir,sealevelpressure,cloudcover,visibility,solarradiation,solarenergy,uvindex,severerisk,sunrise,sunset,moonphase,conditions,description,icon,stations // "Amsterdam,Netherlands",2024-01-01,9.1,6.4,8,5.3,2.5,4.1,5.1,82.4,14.26,100,37.5,rain,0,0,53.9,40.2,225.9,1000.1,88.7,20.5,20.6,1.8,2,,2024-01-01T08:50:34,2024-01-01T16:37:06,0.68,"Rain, Partially cloudy",Partly cloudy throughout the day with a chance of rain throughout the day.,rain,"06260099999,D3248,06348099999,06249099999,C0449,06240099999,06269099999,06257099999,06344099999" - factory _WeatherData.fromCsv(List row) => - _WeatherData( + factory _WeatherData.fromCsv(List row) => _WeatherData( name: row[0], datetime: DateTime.parse(row[1]), tempmax: double.parse(row[2]), @@ -454,8 +456,7 @@ class _WeatherData with EquatableMixin { ); @override - List get props => - [ + List get props => [ name, datetime, tempmax, diff --git a/lib/src/chart/base/axis_chart/axis_chart_data.dart b/lib/src/chart/base/axis_chart/axis_chart_data.dart index 2b703c329..06b6213f4 100644 --- a/lib/src/chart/base/axis_chart/axis_chart_data.dart +++ b/lib/src/chart/base/axis_chart/axis_chart_data.dart @@ -1740,6 +1740,12 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { this.lineWidth = 1.0, this.capLength = 8.0, this.crossAlignment = 0, + this.showErrorTexts = false, + this.errorTextStyle = const TextStyle( + color: Colors.white, + fontSize: 12, + ), + this.errorTextDirection = TextDirection.ltr, }) { _linePaint = Paint() ..color = lineColor @@ -1755,6 +1761,9 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { final double lineWidth; final double capLength; final double crossAlignment; + final bool showErrorTexts; + final TextStyle errorTextStyle; + final TextDirection errorTextDirection; late final Paint _linePaint; @@ -1773,6 +1782,28 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { Offset(offsetInCanvas.dx, rect.top), Offset(offsetInCanvas.dx, rect.bottom), ); + + if (showErrorTexts) { + // lower + _drawErrorText( + canvas: canvas, + rect: rect, + isHorizontal: false, + isLower: true, + text: (origin.y - origin.yError!.lowerBy).toString(), + textStyle: errorTextStyle, + ); + + // upper + _drawErrorText( + canvas: canvas, + rect: rect, + isHorizontal: false, + isLower: false, + text: (origin.y + origin.yError!.upperBy).toString(), + textStyle: errorTextStyle, + ); + } } final hasHorizontalError = errorRelativeRect.width != 0; @@ -1782,6 +1813,28 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { Offset(rect.left, offsetInCanvas.dy), Offset(rect.right, offsetInCanvas.dy), ); + + if (showErrorTexts) { + // lower + _drawErrorText( + canvas: canvas, + rect: rect, + isHorizontal: true, + isLower: true, + text: (origin.x - origin.xError!.lowerBy).toString(), + textStyle: errorTextStyle, + ); + + // upper + _drawErrorText( + canvas: canvas, + rect: rect, + isHorizontal: true, + isLower: false, + text: (origin.x + origin.xError!.upperBy).toString(), + textStyle: errorTextStyle, + ); + } } } @@ -1838,10 +1891,52 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { } } + void _drawErrorText({ + required Canvas canvas, + required Rect rect, + required bool isHorizontal, + required bool isLower, + required String text, + required TextStyle textStyle, + }) { + final lowerText = TextPainter( + text: TextSpan( + text: text, + style: textStyle, + ), + textDirection: TextDirection.ltr, + )..layout(); + + const spacing = 4.0; + final textX = isHorizontal + ? isLower + ? rect.left - lowerText.width - spacing + : rect.right + spacing + : rect.center.dx - lowerText.width / 2; + + final textY = isHorizontal + ? rect.center.dy - lowerText.height / 2 + : isLower + ? rect.bottom + spacing + : rect.top - lowerText.width - spacing; + + lowerText.paint( + canvas, + Offset( + textX, + textY, + ), + ); + } + @override List get props => [ lineColor, lineWidth, capLength, + crossAlignment, + showErrorTexts, + errorTextStyle, + errorTextDirection, ]; } From 867d89bce518a08243e3c77c51c848d0f205d83d Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Fri, 10 Jan 2025 23:18:46 +0100 Subject: [PATCH 12/27] Remove dead code from utils.dart --- lib/src/utils/utils.dart | 14 -------------- test/utils/utils_test.dart | 34 ---------------------------------- 2 files changed, 48 deletions(-) diff --git a/lib/src/utils/utils.dart b/lib/src/utils/utils.dart index acdde3c9e..241790477 100644 --- a/lib/src/utils/utils.dart +++ b/lib/src/utils/utils.dart @@ -23,20 +23,6 @@ class Utils { /// Converts radians to degrees double degrees(double radians) => radians * _radians2Degrees; - /// Returns a default size based on the screen size - /// that is a 70% scaled square based on the screen. - Size getDefaultSize(Size screenSize) { - Size resultSize; - if (screenSize.width < screenSize.height) { - resultSize = Size(screenSize.width, screenSize.width); - } else if (screenSize.height < screenSize.width) { - resultSize = Size(screenSize.height, screenSize.height); - } else { - resultSize = Size(screenSize.width, screenSize.height); - } - return resultSize * 0.7; - } - /// Forward the view base on its degree double translateRotatedPosition(double size, double degree) { return (size / 4) * math.sin(radians(degree.abs())); diff --git a/test/utils/utils_test.dart b/test/utils/utils_test.dart index 85d9e750c..bbe4867bb 100644 --- a/test/utils/utils_test.dart +++ b/test/utils/utils_test.dart @@ -36,40 +36,6 @@ void main() { expect(Utils().degrees(1.2), closeTo(68.7549, tolerance)); }); - test('test default size', () { - expect( - Utils().getDefaultSize(const Size(1080, 1920)).width, - closeTo(756, tolerance), - ); - expect( - Utils().getDefaultSize(const Size(1080, 1920)).height, - closeTo(756, tolerance), - ); - - expect( - Utils().getDefaultSize(const Size(728, 1080)).width, - closeTo(509.6, tolerance), - ); - expect( - Utils().getDefaultSize(const Size(728, 1080)).height, - closeTo(509.6, tolerance), - ); - - expect( - Utils().getDefaultSize(const Size(2560, 1600)).width, - closeTo(1120, tolerance), - ); - expect( - Utils().getDefaultSize(const Size(2560, 1600)).height, - closeTo(1120, tolerance), - ); - - expect( - Utils().getDefaultSize(const Size(1000, 1000)).width, - closeTo(700, tolerance), - ); - }); - test('translate rotated position', () { expect(Utils().translateRotatedPosition(100, 90), 25); expect(Utils().translateRotatedPosition(100, 0), 0); From 5a0fbfe5b5c2fcf8fe2b043a638218b625b1ebe0 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Fri, 10 Jan 2025 23:25:38 +0100 Subject: [PATCH 13/27] Show formatted number in the error indicator painter --- .../base/axis_chart/axis_chart_data.dart | 27 ++++++++++++++++--- .../chart/line_chart/line_chart_painter.dart | 1 + lib/src/utils/canvas_wrapper.dart | 3 ++- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/lib/src/chart/base/axis_chart/axis_chart_data.dart b/lib/src/chart/base/axis_chart/axis_chart_data.dart index 06b6213f4..7d32ee4c3 100644 --- a/lib/src/chart/base/axis_chart/axis_chart_data.dart +++ b/lib/src/chart/base/axis_chart/axis_chart_data.dart @@ -5,6 +5,7 @@ import 'package:equatable/equatable.dart'; import 'package:fl_chart/fl_chart.dart'; import 'package:fl_chart/src/chart/base/axis_chart/axis_chart_painter.dart'; import 'package:fl_chart/src/utils/lerp.dart'; +import 'package:fl_chart/src/utils/utils.dart'; import 'package:flutter/material.dart' hide Image; /// This is the base class for axis base charts data @@ -1731,6 +1732,7 @@ abstract class FlSpotErrorRangePainter with EquatableMixin { Offset offsetInCanvas, FlSpot origin, Rect errorRelativeRect, + AxisChartData axisChartData, ); } @@ -1773,6 +1775,7 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { Offset offsetInCanvas, FlSpot origin, Rect errorRelativeRect, + AxisChartData axisChartData, ) { final rect = errorRelativeRect.shift(offsetInCanvas); final hasVerticalError = errorRelativeRect.height != 0; @@ -1790,7 +1793,11 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { rect: rect, isHorizontal: false, isLower: true, - text: (origin.y - origin.yError!.lowerBy).toString(), + text: Utils().formatNumber( + axisChartData.minY, + axisChartData.maxY, + origin.y - origin.yError!.lowerBy, + ), textStyle: errorTextStyle, ); @@ -1800,7 +1807,11 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { rect: rect, isHorizontal: false, isLower: false, - text: (origin.y + origin.yError!.upperBy).toString(), + text: Utils().formatNumber( + axisChartData.minY, + axisChartData.maxY, + origin.y + origin.yError!.upperBy, + ), textStyle: errorTextStyle, ); } @@ -1821,7 +1832,11 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { rect: rect, isHorizontal: true, isLower: true, - text: (origin.x - origin.xError!.lowerBy).toString(), + text: Utils().formatNumber( + axisChartData.minX, + axisChartData.maxX, + origin.x - origin.xError!.lowerBy, + ), textStyle: errorTextStyle, ); @@ -1831,7 +1846,11 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { rect: rect, isHorizontal: true, isLower: false, - text: (origin.x + origin.xError!.upperBy).toString(), + text: Utils().formatNumber( + axisChartData.minX, + axisChartData.maxX, + origin.x + origin.xError!.upperBy, + ), textStyle: errorTextStyle, ); } diff --git a/lib/src/chart/line_chart/line_chart_painter.dart b/lib/src/chart/line_chart/line_chart_painter.dart index 9a6df14e9..5986568af 100644 --- a/lib/src/chart/line_chart/line_chart_painter.dart +++ b/lib/src/chart/line_chart/line_chart_painter.dart @@ -427,6 +427,7 @@ class LineChartPainter extends AxisChartPainter { spot, Offset(x, y), relativeErrorPixelsRect, + holder.data, ); } } diff --git a/lib/src/utils/canvas_wrapper.dart b/lib/src/utils/canvas_wrapper.dart index 0d0074cbb..c1a5dfa74 100644 --- a/lib/src/utils/canvas_wrapper.dart +++ b/lib/src/utils/canvas_wrapper.dart @@ -124,8 +124,9 @@ class CanvasWrapper { FlSpot origin, Offset offset, Rect errorRelativeRect, + AxisChartData axisData, ) { - painter.draw(canvas, offset, origin, errorRelativeRect); + painter.draw(canvas, offset, origin, errorRelativeRect, axisData); } /// Handles performing multiple draw actions rotated. From b4bf1bd9689fa8cd01173003f58342924aa0bd83 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Fri, 10 Jan 2025 23:59:56 +0100 Subject: [PATCH 14/27] Simplify line_chart_painter.dart --- lib/src/chart/line_chart/line_chart_painter.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/chart/line_chart/line_chart_painter.dart b/lib/src/chart/line_chart/line_chart_painter.dart index 5986568af..774ad5956 100644 --- a/lib/src/chart/line_chart/line_chart_painter.dart +++ b/lib/src/chart/line_chart/line_chart_painter.dart @@ -160,7 +160,6 @@ class LineChartPainter extends AxisChartPainter { drawErrorIndicatorData( canvasWrapper, barData, - barData.errorIndicatorData, holder, ); } @@ -377,9 +376,9 @@ class LineChartPainter extends AxisChartPainter { void drawErrorIndicatorData( CanvasWrapper canvasWrapper, LineChartBarData barData, - FlErrorIndicatorData errorIndicatorData, PaintHolder holder, ) { + final errorIndicatorData = barData.errorIndicatorData; if (!errorIndicatorData.show) { return; } From 8c9596a8e63183194e2983b0861fe6aa92ff685e Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Sat, 11 Jan 2025 00:40:09 +0100 Subject: [PATCH 15/27] Add generic type for the error painter to be able to support other chart types (such as bar chart and scatter chart) --- .../samples/line/line_chart_sample13.dart | 36 +++++++++---------- .../base/axis_chart/axis_chart_data.dart | 33 ++++++++++------- lib/src/chart/line_chart/line_chart_data.dart | 29 +++++++++++++-- .../chart/line_chart/line_chart_painter.dart | 9 +++-- 4 files changed, 70 insertions(+), 37 deletions(-) diff --git a/example/lib/presentation/samples/line/line_chart_sample13.dart b/example/lib/presentation/samples/line/line_chart_sample13.dart index 2b31a088a..0b4e5f62b 100644 --- a/example/lib/presentation/samples/line/line_chart_sample13.dart +++ b/example/lib/presentation/samples/line/line_chart_sample13.dart @@ -200,18 +200,19 @@ class _LineChartSample13State extends State { leftTitles: AxisTitles( drawBelowEverything: true, sideTitles: SideTitles( - showTitles: true, - maxIncluded: false, - minIncluded: false, - reservedSize: 40, - getTitlesWidget: (double value, TitleMeta meta) { - return SideTitleWidget( - meta: meta, - child: Text( - '${meta.formattedValue}°', - ), - ); - }), + showTitles: true, + maxIncluded: false, + minIncluded: false, + reservedSize: 40, + getTitlesWidget: (double value, TitleMeta meta) { + return SideTitleWidget( + meta: meta, + child: Text( + '${meta.formattedValue}°', + ), + ); + }, + ), ), bottomTitles: AxisTitles( axisNameWidget: Container( @@ -278,15 +279,14 @@ class _LineChartSample13State extends State { } FlSpotErrorRangePainter _errorPainter( - FlSpot spot, - LineChartBarData bar, - int spotIndex, + LineChartSpotErrorRangeCallbackInput input, ) => FlSimpleErrorPainter( lineWidth: 1.0, - lineColor: - _interactedSpotIndex == spotIndex ? Colors.white : Colors.white38, - showErrorTexts: _interactedSpotIndex == spotIndex, + lineColor: _interactedSpotIndex == input.spotIndex + ? Colors.white + : Colors.white38, + showErrorTexts: _interactedSpotIndex == input.spotIndex, ); FlLine _horizontalGridLines(double value) { diff --git a/lib/src/chart/base/axis_chart/axis_chart_data.dart b/lib/src/chart/base/axis_chart/axis_chart_data.dart index 7d32ee4c3..9118c37e0 100644 --- a/lib/src/chart/base/axis_chart/axis_chart_data.dart +++ b/lib/src/chart/base/axis_chart/axis_chart_data.dart @@ -1685,21 +1685,27 @@ class FlDotCrossPainter extends FlDotPainter { ]; } -class FlErrorIndicatorData with EquatableMixin { +class FlErrorIndicatorData + with EquatableMixin { const FlErrorIndicatorData({ this.show = true, this.painter = _defaultGetSpotRangeErrorPainter, }); + /// Determines showing the error indicator or not final bool show; - final GetSpotRangeErrorPainter painter; - static FlErrorIndicatorData lerp( - FlErrorIndicatorData a, - FlErrorIndicatorData b, + /// A callback that allows you to return a [FlSpotErrorRangePainter] + /// per each data point (for example [FlSpot] in line chart) + final GetSpotRangeErrorPainter painter; + + /// Lerps a [FlErrorIndicatorData] based on [t] value. + static FlErrorIndicatorData lerp( + FlErrorIndicatorData a, + FlErrorIndicatorData b, double t, ) => - FlErrorIndicatorData( + FlErrorIndicatorData( show: b.show, painter: b.painter, ); @@ -1711,16 +1717,15 @@ class FlErrorIndicatorData with EquatableMixin { ]; } -typedef GetSpotRangeErrorPainter = FlSpotErrorRangePainter Function( - FlSpot spot, - LineChartBarData bar, - int spotIndex, +/// A callback that allows you to return a [FlSpotErrorRangePainter] based on +/// the provided specific data point (for example [FlSpot] in line chart) +typedef GetSpotRangeErrorPainter + = FlSpotErrorRangePainter Function( + T input, ); FlSpotErrorRangePainter _defaultGetSpotRangeErrorPainter( - FlSpot spot, - LineChartBarData bar, - int spotIndex, + FlSpotErrorRangeCallbackInput input, ) => FlSimpleErrorPainter(); @@ -1959,3 +1964,5 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { errorTextDirection, ]; } + +abstract class FlSpotErrorRangeCallbackInput with EquatableMixin {} diff --git a/lib/src/chart/line_chart/line_chart_data.dart b/lib/src/chart/line_chart/line_chart_data.dart index 28683459f..576a2a124 100644 --- a/lib/src/chart/line_chart/line_chart_data.dart +++ b/lib/src/chart/line_chart/line_chart_data.dart @@ -243,7 +243,8 @@ class LineChartBarData with EquatableMixin { BarAreaData? belowBarData, BarAreaData? aboveBarData, this.dotData = const FlDotData(), - this.errorIndicatorData = const FlErrorIndicatorData(), + this.errorIndicatorData = + const FlErrorIndicatorData(), this.showingIndicators = const [], this.dashArray, this.shadow = const Shadow(color: Colors.transparent), @@ -357,7 +358,8 @@ class LineChartBarData with EquatableMixin { final FlDotData dotData; /// Holds data for showing error indicators on the spots in this line. - final FlErrorIndicatorData errorIndicatorData; + final FlErrorIndicatorData + errorIndicatorData; /// Show indicators based on provided indexes final List showingIndicators; @@ -429,7 +431,8 @@ class LineChartBarData with EquatableMixin { BarAreaData? belowBarData, BarAreaData? aboveBarData, FlDotData? dotData, - FlErrorIndicatorData? errorIndicatorData, + FlErrorIndicatorData? + errorIndicatorData, List? dashArray, List? showingIndicators, Shadow? shadow, @@ -1305,6 +1308,26 @@ class LineTouchResponse extends BaseTouchResponse { ); } +class LineChartSpotErrorRangeCallbackInput + extends FlSpotErrorRangeCallbackInput { + LineChartSpotErrorRangeCallbackInput({ + required this.spot, + required this.bar, + required this.spotIndex, + }); + + final FlSpot spot; + final LineChartBarData bar; + final int spotIndex; + + @override + List get props => [ + spot, + bar, + spotIndex, + ]; +} + /// It lerps a [LineChartData] to another [LineChartData] (handles animation for updating values) class LineChartDataTween extends Tween { LineChartDataTween({required super.begin, required super.end}); diff --git a/lib/src/chart/line_chart/line_chart_painter.dart b/lib/src/chart/line_chart/line_chart_painter.dart index 774ad5956..cdd5d1efa 100644 --- a/lib/src/chart/line_chart/line_chart_painter.dart +++ b/lib/src/chart/line_chart/line_chart_painter.dart @@ -48,6 +48,7 @@ class LineChartPainter extends AxisChartPainter { _clipPaint = Paint(); } + late Paint _barPaint; late Paint _barAreaPaint; late Paint _barAreaLinesPaint; @@ -417,9 +418,11 @@ class LineChartPainter extends AxisChartPainter { ); final painter = errorIndicatorData.painter( - spot, - barData, - i, + LineChartSpotErrorRangeCallbackInput( + spot: spot, + bar: barData, + spotIndex: i, + ), ); canvasWrapper.drawErrorIndicator( painter, From f652121694c6994058254a7b68a3a37c769f0ece Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Sat, 11 Jan 2025 00:57:48 +0100 Subject: [PATCH 16/27] Implement error indicator in bar chart. (sample 8) --- .../samples/bar/bar_chart_sample8.dart | 37 +++++++++- lib/src/chart/bar_chart/bar_chart_data.dart | 44 +++++++++++ .../chart/bar_chart/bar_chart_painter.dart | 73 +++++++++++++++++++ 3 files changed, 150 insertions(+), 4 deletions(-) diff --git a/example/lib/presentation/samples/bar/bar_chart_sample8.dart b/example/lib/presentation/samples/bar/bar_chart_sample8.dart index 044b68070..247e307f1 100644 --- a/example/lib/presentation/samples/bar/bar_chart_sample8.dart +++ b/example/lib/presentation/samples/bar/bar_chart_sample8.dart @@ -61,12 +61,14 @@ class BarChartSample1State extends State { BarChartGroupData makeGroupData( int x, double y, + FlErrorRange errorRange, ) { return BarChartGroupData( x: x, barRods: [ BarChartRodData( toY: y, + toYErrorRange: errorRange, color: x >= 4 ? Colors.transparent : widget.barColor, borderRadius: BorderRadius.zero, borderDashArray: x >= 4 ? [4, 4] : null, @@ -134,12 +136,39 @@ class BarChartSample1State extends State { ), barGroups: List.generate( 7, - (i) => makeGroupData( - i, - Random().nextInt(290).toDouble() + 10, - ), + (i) { + final y = Random().nextInt(290).toDouble() + 10; + final lowerBy = y < 50 + ? Random().nextDouble() * 10 + : Random().nextDouble() * 30 + 5; + final upperBy = y > 290 + ? Random().nextDouble() * 10 + : Random().nextDouble() * 30 + 5; + return makeGroupData( + i, + y, + FlErrorRange( + lowerBy: lowerBy, + upperBy: upperBy, + ), + ); + }, ), gridData: const FlGridData(show: false), + errorIndicatorData: FlErrorIndicatorData( + painter: _errorPainter, + ), ); } + + FlSpotErrorRangePainter _errorPainter( + BarChartSpotErrorRangeCallbackInput input, + ) => + FlSimpleErrorPainter( + lineWidth: 2.0, + capLength: 14, + lineColor: input.groupIndex < 4 + ? AppColors.contentColorOrange + : AppColors.primary.withValues(alpha: 0.5), + ); } diff --git a/lib/src/chart/bar_chart/bar_chart_data.dart b/lib/src/chart/bar_chart/bar_chart_data.dart index eadf35ae4..ca8b3edd6 100644 --- a/lib/src/chart/bar_chart/bar_chart_data.dart +++ b/lib/src/chart/bar_chart/bar_chart_data.dart @@ -48,6 +48,7 @@ class BarChartData extends AxisChartData with EquatableMixin { super.backgroundColor, ExtraLinesData? extraLinesData, super.rotationQuarterTurns, + this.errorIndicatorData = const FlErrorIndicatorData(), }) : barGroups = barGroups ?? const [], groupsSpace = groupsSpace ?? 16, alignment = alignment ?? BarChartAlignment.spaceEvenly, @@ -79,6 +80,10 @@ class BarChartData extends AxisChartData with EquatableMixin { /// Handles touch behaviors and responses. final BarTouchData barTouchData; + /// Holds data for showing error indicators on the spots in this line. + final FlErrorIndicatorData + errorIndicatorData; + /// Copies current [BarChartData] to a new [BarChartData], /// and replaces provided values. BarChartData copyWith({ @@ -96,6 +101,8 @@ class BarChartData extends AxisChartData with EquatableMixin { Color? backgroundColor, ExtraLinesData? extraLinesData, int? rotationQuarterTurns, + FlErrorIndicatorData? + errorIndicatorData, }) => BarChartData( barGroups: barGroups ?? this.barGroups, @@ -112,6 +119,7 @@ class BarChartData extends AxisChartData with EquatableMixin { backgroundColor: backgroundColor ?? this.backgroundColor, extraLinesData: extraLinesData ?? this.extraLinesData, rotationQuarterTurns: rotationQuarterTurns ?? this.rotationQuarterTurns, + errorIndicatorData: errorIndicatorData ?? this.errorIndicatorData, ); /// Lerps a [BaseChartData] based on [t] value, check [Tween.lerp]. @@ -135,6 +143,11 @@ class BarChartData extends AxisChartData with EquatableMixin { extraLinesData: ExtraLinesData.lerp(a.extraLinesData, b.extraLinesData, t), rotationQuarterTurns: b.rotationQuarterTurns, + errorIndicatorData: FlErrorIndicatorData.lerp( + a.errorIndicatorData, + b.errorIndicatorData, + t, + ), ); } else { throw Exception('Illegal State'); @@ -158,6 +171,7 @@ class BarChartData extends AxisChartData with EquatableMixin { backgroundColor, extraLinesData, rotationQuarterTurns, + errorIndicatorData, ]; } @@ -318,6 +332,7 @@ class BarChartRodData with EquatableMixin { BarChartRodData({ double? fromY, required this.toY, + this.toYErrorRange, Color? color, this.gradient, double? width, @@ -341,6 +356,8 @@ class BarChartRodData with EquatableMixin { /// [BarChart] renders rods vertically from [fromY] to [toY]. final double toY; + final FlErrorRange? toYErrorRange; + /// If provided, this [BarChartRodData] draws with this [color] /// Otherwise we use [gradient] to draw the background. /// It throws an exception if you provide both [color] and [gradient] @@ -380,6 +397,7 @@ class BarChartRodData with EquatableMixin { BarChartRodData copyWith({ double? fromY, double? toY, + FlErrorRange? toYErrorRange, Color? color, Gradient? gradient, double? width, @@ -392,6 +410,7 @@ class BarChartRodData with EquatableMixin { BarChartRodData( fromY: fromY ?? this.fromY, toY: toY ?? this.toY, + toYErrorRange: toYErrorRange ?? this.toYErrorRange, color: color ?? this.color, gradient: gradient ?? this.gradient, width: width ?? this.width, @@ -413,6 +432,7 @@ class BarChartRodData with EquatableMixin { borderSide: BorderSide.lerp(a.borderSide, b.borderSide, t), fromY: lerpDouble(a.fromY, b.fromY, t), toY: lerpDouble(a.toY, b.toY, t)!, + toYErrorRange: FlErrorRange.lerp(a.toYErrorRange, b.toYErrorRange, t), backDrawRodData: BackgroundBarChartRodData.lerp( a.backDrawRodData, b.backDrawRodData, @@ -427,6 +447,7 @@ class BarChartRodData with EquatableMixin { List get props => [ fromY, toY, + toYErrorRange, width, borderRadius, borderDashArray, @@ -929,6 +950,29 @@ class BarTouchedSpot extends TouchedSpot with EquatableMixin { ]; } +class BarChartSpotErrorRangeCallbackInput + extends FlSpotErrorRangeCallbackInput { + BarChartSpotErrorRangeCallbackInput({ + required this.group, + required this.groupIndex, + required this.rod, + required this.barRodIndex, + }); + + final BarChartGroupData group; + final int groupIndex; + final BarChartRodData rod; + final int barRodIndex; + + @override + List get props => [ + group, + groupIndex, + rod, + barRodIndex, + ]; +} + /// It lerps a [BarChartData] to another [BarChartData] (handles animation for updating values) class BarChartDataTween extends Tween { BarChartDataTween({required BarChartData begin, required BarChartData end}) diff --git a/lib/src/chart/bar_chart/bar_chart_painter.dart b/lib/src/chart/bar_chart/bar_chart_painter.dart index 1a2e8dbe8..92c9e0945 100644 --- a/lib/src/chart/bar_chart/bar_chart_painter.dart +++ b/lib/src/chart/bar_chart/bar_chart_painter.dart @@ -37,6 +37,7 @@ class BarChartPainter extends AxisChartPainter { _clipPaint = Paint(); } + late Paint _barPaint; late Paint _barStrokePaint; late Paint _bgTouchTooltipPaint; @@ -93,6 +94,8 @@ class BarChartPainter extends AxisChartPainter { drawBars(canvasWrapper, _groupBarsPosition!, holder); + drawErrorIndicatorData(canvasWrapper, _groupBarsPosition!, holder); + if (data.extraLinesData.extraLinesOnTop) { super.drawHorizontalLines( context, @@ -352,6 +355,75 @@ class BarChartPainter extends AxisChartPainter { } } + @visibleForTesting + void drawErrorIndicatorData( + CanvasWrapper canvasWrapper, + List groupBarsPosition, + PaintHolder holder, + ) { + final data = holder.data; + final errorIndicatorData = data.errorIndicatorData; + if (!errorIndicatorData.show) { + return; + } + + final viewSize = canvasWrapper.size; + for (var i = 0; i < data.barGroups.length; i++) { + final barGroup = data.barGroups[i]; + for (var j = 0; j < barGroup.barRods.length; j++) { + final barRod = barGroup.barRods[j]; + + if (barRod.toYErrorRange == null) { + continue; + } + + final x = groupBarsPosition[i].barsX[j]; + + final y = getPixelY(barRod.toY, viewSize, holder); + final top = getPixelY( + barRod.toY + barRod.toYErrorRange!.upperBy, + viewSize, + holder, + ) - + y; + + final bottom = getPixelY( + barRod.toY - barRod.toYErrorRange!.lowerBy, + viewSize, + holder, + ) - + y; + + final relativeErrorPixelsRect = Rect.fromLTRB( + 0, + top, + 0, + bottom, + ); + + final painter = errorIndicatorData.painter( + BarChartSpotErrorRangeCallbackInput( + group: barGroup, + groupIndex: i, + rod: barRod, + barRodIndex: j, + ), + ); + canvasWrapper.drawErrorIndicator( + painter, + FlSpot( + barGroup.x.toDouble(), + barRod.toY, + yError: barRod.toYErrorRange, + ), + Offset(x, y), + relativeErrorPixelsRect, + holder.data, + ); + } + } + } + @visibleForTesting void drawTouchTooltip( BuildContext context, @@ -764,6 +836,7 @@ class BarChartPainter extends AxisChartPainter { @visibleForTesting class GroupBarsPosition { GroupBarsPosition(this.groupX, this.barsX); + final double groupX; final List barsX; } From 66b58002391c93060aebb72d859e8e22e0a3e9f1 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Sat, 11 Jan 2025 01:10:21 +0100 Subject: [PATCH 17/27] Add error indicator functionality in the Scatter Chart --- .../scatter_chart/scatter_chart_data.dart | 31 ++++++++++ .../scatter_chart/scatter_chart_painter.dart | 61 +++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/lib/src/chart/scatter_chart/scatter_chart_data.dart b/lib/src/chart/scatter_chart/scatter_chart_data.dart index 920d7ef63..99e81de68 100644 --- a/lib/src/chart/scatter_chart/scatter_chart_data.dart +++ b/lib/src/chart/scatter_chart/scatter_chart_data.dart @@ -50,6 +50,8 @@ class ScatterChartData extends AxisChartData with EquatableMixin { super.backgroundColor, ScatterLabelSettings? scatterLabelSettings, super.rotationQuarterTurns, + this.errorIndicatorData = + const FlErrorIndicatorData(), }) : scatterSpots = scatterSpots ?? const [], scatterTouchData = scatterTouchData ?? ScatterTouchData(), showingTooltipIndicators = showingTooltipIndicators ?? const [], @@ -89,6 +91,10 @@ class ScatterChartData extends AxisChartData with EquatableMixin { final ScatterLabelSettings scatterLabelSettings; + /// Holds data for showing error indicators on the spots in this line. + final FlErrorIndicatorData + errorIndicatorData; + /// Lerps a [ScatterChartData] based on [t] value, check [Tween.lerp]. @override ScatterChartData lerp(BaseChartData a, BaseChartData b, double t) { @@ -118,6 +124,11 @@ class ScatterChartData extends AxisChartData with EquatableMixin { t, ), rotationQuarterTurns: b.rotationQuarterTurns, + errorIndicatorData: FlErrorIndicatorData.lerp( + a.errorIndicatorData, + b.errorIndicatorData, + t, + ), ); } else { throw Exception('Illegal State'); @@ -143,6 +154,7 @@ class ScatterChartData extends AxisChartData with EquatableMixin { Color? backgroundColor, ScatterLabelSettings? scatterLabelSettings, int? rotationQuarterTurns, + FlErrorIndicatorData? errorIndicatorData, }) => ScatterChartData( scatterSpots: scatterSpots ?? this.scatterSpots, @@ -162,6 +174,7 @@ class ScatterChartData extends AxisChartData with EquatableMixin { backgroundColor: backgroundColor ?? this.backgroundColor, scatterLabelSettings: scatterLabelSettings ?? this.scatterLabelSettings, rotationQuarterTurns: rotationQuarterTurns ?? this.rotationQuarterTurns, + errorIndicatorData: errorIndicatorData ?? this.errorIndicatorData, ); /// Used for equality check, see [EquatableMixin]. @@ -186,6 +199,7 @@ class ScatterChartData extends AxisChartData with EquatableMixin { borderData, touchData, rotationQuarterTurns, + errorIndicatorData, ]; } @@ -746,3 +760,20 @@ class ScatterLabelSettings with EquatableMixin { textDirection, ]; } + +class ScatterChartSpotErrorRangeCallbackInput + extends FlSpotErrorRangeCallbackInput { + ScatterChartSpotErrorRangeCallbackInput({ + required this.spot, + required this.spotIndex, + }); + + final ScatterSpot spot; + final int spotIndex; + + @override + List get props => [ + spot, + spotIndex, + ]; +} diff --git a/lib/src/chart/scatter_chart/scatter_chart_painter.dart b/lib/src/chart/scatter_chart/scatter_chart_painter.dart index 0cbb0cb81..402e04e5b 100644 --- a/lib/src/chart/scatter_chart/scatter_chart_painter.dart +++ b/lib/src/chart/scatter_chart/scatter_chart_painter.dart @@ -118,6 +118,8 @@ class ScatterChartPainter extends AxisChartPainter { ); } + drawScatterErrorBars(canvasWrapper, holder); + if (data.scatterLabelSettings.showLabel) { for (var i = 0; i < data.scatterSpots.length; i++) { final scatterSpot = data.scatterSpots[i]; @@ -191,6 +193,65 @@ class ScatterChartPainter extends AxisChartPainter { } } + @visibleForTesting + void drawScatterErrorBars( + CanvasWrapper canvasWrapper, + PaintHolder holder, + ) { + final data = holder.data; + final viewSize = canvasWrapper.size; + + final errorIndicatorData = data.errorIndicatorData; + if (!errorIndicatorData.show) { + return; + } + for (var i = 0; i < data.scatterSpots.length; i++) { + final spot = data.scatterSpots[i]; + if (!spot.show || spot.isNull()) { + continue; + } + final x = getPixelX(spot.x, viewSize, holder); + final y = getPixelY(spot.y, viewSize, holder); + if (spot.xError == null && spot.yError == null) { + continue; + } + + var left = 0.0; + var right = 0.0; + if (spot.xError != null) { + left = getPixelX(spot.x - spot.xError!.lowerBy, viewSize, holder) - x; + right = getPixelX(spot.x + spot.xError!.upperBy, viewSize, holder) - x; + } + + var top = 0.0; + var bottom = 0.0; + if (spot.yError != null) { + top = getPixelY(spot.y + spot.yError!.lowerBy, viewSize, holder) - y; + bottom = getPixelY(spot.y - spot.yError!.upperBy, viewSize, holder) - y; + } + final relativeErrorPixelsRect = Rect.fromLTRB( + left, + top, + right, + bottom, + ); + + final painter = errorIndicatorData.painter( + ScatterChartSpotErrorRangeCallbackInput( + spot: spot, + spotIndex: i, + ), + ); + canvasWrapper.drawErrorIndicator( + painter, + spot, + Offset(x, y), + relativeErrorPixelsRect, + holder.data, + ); + } + } + @visibleForTesting void drawTouchTooltips( BuildContext context, From 5b160bd0bd6b06966ec851cc00ee7a54b3d1ccee Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Mon, 13 Jan 2025 21:58:29 +0100 Subject: [PATCH 18/27] Update the dart documentation --- lib/src/chart/bar_chart/bar_chart_data.dart | 27 +++++- .../base/axis_chart/axis_chart_data.dart | 96 ++++++++++++++++++- lib/src/chart/line_chart/line_chart_data.dart | 6 ++ .../scatter_chart/scatter_chart_data.dart | 8 +- lib/src/utils/canvas_wrapper.dart | 1 + 5 files changed, 135 insertions(+), 3 deletions(-) diff --git a/lib/src/chart/bar_chart/bar_chart_data.dart b/lib/src/chart/bar_chart/bar_chart_data.dart index ca8b3edd6..3d2fb30ff 100644 --- a/lib/src/chart/bar_chart/bar_chart_data.dart +++ b/lib/src/chart/bar_chart/bar_chart_data.dart @@ -80,7 +80,8 @@ class BarChartData extends AxisChartData with EquatableMixin { /// Handles touch behaviors and responses. final BarTouchData barTouchData; - /// Holds data for showing error indicators on the spots in this line. + /// Holds data for showing error (threshold) indicators on the spots in + /// the different [BarChartGroupData.barRods] final FlErrorIndicatorData errorIndicatorData; @@ -356,6 +357,13 @@ class BarChartRodData with EquatableMixin { /// [BarChart] renders rods vertically from [fromY] to [toY]. final double toY; + /// If the data has error range/threshold, it will be rendered + /// with this error range. So you can provide the + /// [FlErrorRange.lowerBy] and [FlErrorRange.upperBy] that is relative to + /// the [toY] property. + /// + /// If you want to customize the visual representation of the error range, + /// you can use [BarChartData.errorIndicatorData] to customize the error range final FlErrorRange? toYErrorRange; /// If provided, this [BarChartRodData] draws with this [color] @@ -950,6 +958,16 @@ class BarTouchedSpot extends TouchedSpot with EquatableMixin { ]; } +/// It is the input of the [GetSpotRangeErrorPainter] callback in +/// the [BarChartData.errorIndicatorData] +/// +/// As you see, we have some properties that are related to each individual +/// rod (the object we show the error range on top of it). +/// For example, +/// [group] is the group that the rod belongs to, +/// [groupIndex] is the index of the group, +/// [rod] is the rod that the error range belongs to, +/// [barRodIndex] is the index of the rod in the group. class BarChartSpotErrorRangeCallbackInput extends FlSpotErrorRangeCallbackInput { BarChartSpotErrorRangeCallbackInput({ @@ -959,9 +977,16 @@ class BarChartSpotErrorRangeCallbackInput required this.barRodIndex, }); + // The group that the rod belongs to final BarChartGroupData group; + + // The index of the group that the rod belongs to final int groupIndex; + + // The rod that the error range belongs to final BarChartRodData rod; + + // The index of the rod in the group final int barRodIndex; @override diff --git a/lib/src/chart/base/axis_chart/axis_chart_data.dart b/lib/src/chart/base/axis_chart/axis_chart_data.dart index 9118c37e0..d83e453ac 100644 --- a/lib/src/chart/base/axis_chart/axis_chart_data.dart +++ b/lib/src/chart/base/axis_chart/axis_chart_data.dart @@ -571,6 +571,11 @@ class FlSpot { x.hashCode ^ y.hashCode ^ xError.hashCode ^ yError.hashCode; } +/// Represents a range of values that can be used to show error bars/threshold +/// +/// [lowerBy] and [upperBy] are the values that will be added and subtracted +/// from the main value. It means that they should be non-negative. +/// Also it means that they are relative to the main value. class FlErrorRange with EquatableMixin { const FlErrorRange({ required this.lowerBy, @@ -578,14 +583,22 @@ class FlErrorRange with EquatableMixin { }) : assert(lowerBy >= 0, 'lowerBy must be non-negative'), assert(upperBy >= 0, 'upperBy must be non-negative'); + /// Creates a symmetric error range. + /// It sets [lowerBy] and [upperBy] to the same [value]. const FlErrorRange.symmetric(double value) : lowerBy = value, upperBy = value, assert(value >= 0, 'value must be non-negative'); + /// determines the lower bound of the error range, it will be subtracted from + /// the main value. So it is non-negative and it is relative to the main value final double lowerBy; + + /// determines the lower bound of the error range, it will be added to + /// the main value. So it is non-negative and it is relative to the main value final double upperBy; + /// Lerps a [FlErrorRange] based on [t] value static FlErrorRange? lerp(FlErrorRange? a, FlErrorRange? b, double t) { if (a != null && b != null) { return FlErrorRange( @@ -1685,6 +1698,25 @@ class FlDotCrossPainter extends FlDotPainter { ]; } +/// Holds the information about the error range of a spot +/// +/// We support horizontal and vertical error range/indicator for our axis based +/// charts such as [LineChart], [BarChart] and [PieChart] +/// +/// For example, in [LineChart] you can add [FlSpot.xError] and [FlSpot.yError] +/// in your data points, so we can draw error indicators for them. +/// And it works relative to the point that you are setting the error range +/// +/// For [BarChart], you can set the [BarChartRodData.toYErrorRange] to have +/// vertical error range for each bar. (relative to [BarChartRodData.toY] value) +/// +/// [show] is tru by default, it means that we show +/// the error indicator lines (if you provide them in [FlSpot]s) +/// +/// [painter] is a callback that allows you to return a +/// [FlSpotErrorRangePainter] per each data point which is responsible for +/// drawing the error indicator. You can use the default [FlSimpleErrorPainter] +/// or create your own by extending our abstract [FlSpotErrorRangePainter] class FlErrorIndicatorData with EquatableMixin { const FlErrorIndicatorData({ @@ -1718,20 +1750,49 @@ class FlErrorIndicatorData } /// A callback that allows you to return a [FlSpotErrorRangePainter] based on -/// the provided specific data point (for example [FlSpot] in line chart) +/// the provided specific data point (for example [FlSpot] in [LineChart]) +/// +/// So [input] is different based on the chart type, +/// for example in [LineChart] it will be [LineChartSpotErrorRangeCallbackInput] typedef GetSpotRangeErrorPainter = FlSpotErrorRangePainter Function( T input, ); +/// The default [GetSpotRangeErrorPainter] for [FlErrorIndicatorData], +/// it draws a simple and typical error indicator using [FlSimpleErrorPainter] FlSpotErrorRangePainter _defaultGetSpotRangeErrorPainter( FlSpotErrorRangeCallbackInput input, ) => FlSimpleErrorPainter(); +/// The abstract painter that is responsible for drawing the error range of +/// a point in our axis based charts such as [LineChart] and [BarChart] +/// +/// It has a [draw] method that you should override to draw the error range +/// as you like +/// +/// The default implementation is [FlSpotErrorRangePainter]. It is a simple and +/// common error indicator painter. +/// +/// You can see how does it look in the [example app](https://app.flchart.dev/) abstract class FlSpotErrorRangePainter with EquatableMixin { const FlSpotErrorRangePainter(); + /// Draws the error range of a point in our axis based charts + /// + /// [canvas] is the canvas that you should draw on it + /// [offsetInCanvas] is the absolute position/offset of the point in + /// the canvas that you can use it as your center point + /// [origin] is the relative point point that you should draw + /// the error range on it (it is based on the chart values) + /// [errorRelativeRect] is the relative rect that you should draw the error, + /// it is absolute and you can shift it with [offsetInCanvas] to draw your + /// shape inside it. + /// [axisChartData] is the axis chart data that you can use it to get more + /// information about the chart + /// + /// You can take a look at our default implementation [FlSimpleErrorPainter] void draw( Canvas canvas, Offset offsetInCanvas, @@ -1741,6 +1802,19 @@ abstract class FlSpotErrorRangePainter with EquatableMixin { ); } +/// The default implementation of [FlSpotErrorRangePainter] +/// +/// It draws a simple and common error indicator for the error range of a point +/// in our axis based charts such as [LineChart] and [BarChart] +/// +/// You can see how does it look in the [example app](https://app.flchart.dev/) +/// +/// You can customize the lines using [lineColor], [lineWidth], [capLength], +/// +/// You can customize the text using [showErrorTexts], [errorTextStyle] +/// and [errorTextDirection] +/// +/// You can customize the alignment of the error lines using [crossAlignment] class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { FlSimpleErrorPainter({ this.lineColor = Colors.white, @@ -1764,12 +1838,26 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { ); } + /// The color of the error lines final Color lineColor; + + /// The thickness of the error lines final double lineWidth; + + /// The length of the cap of the error lines final double capLength; + + /// The alignment of the error lines, + /// it should be between -1 (start) and 1 (end) final double crossAlignment; + + /// Determines showing the error texts or not final bool showErrorTexts; + + /// The style of the error texts final TextStyle errorTextStyle; + + /// The direction of the error texts final TextDirection errorTextDirection; late final Paint _linePaint; @@ -1965,4 +2053,10 @@ class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin { ]; } +/// The abstract class that is used as the input of +/// the [GetSpotRangeErrorPainter] callback. +/// +/// So as you know, we have this feature in our axis-based charts and each chart +/// has its own input type, for example in [LineChart] +/// it is [LineChartSpotErrorRangeCallbackInput] (which contains the [FlSpot]) abstract class FlSpotErrorRangeCallbackInput with EquatableMixin {} diff --git a/lib/src/chart/line_chart/line_chart_data.dart b/lib/src/chart/line_chart/line_chart_data.dart index 576a2a124..43dfad95a 100644 --- a/lib/src/chart/line_chart/line_chart_data.dart +++ b/lib/src/chart/line_chart/line_chart_data.dart @@ -1308,6 +1308,12 @@ class LineTouchResponse extends BaseTouchResponse { ); } +/// It is the input of the [GetSpotRangeErrorPainter] callback in +/// the [LineChartData.errorIndicatorData] +/// +/// So it contains the information about the spot, and the bar that the spot +/// is in. The callback should return a [FlSpotErrorRangePainter] that will draw +/// the error bars class LineChartSpotErrorRangeCallbackInput extends FlSpotErrorRangeCallbackInput { LineChartSpotErrorRangeCallbackInput({ diff --git a/lib/src/chart/scatter_chart/scatter_chart_data.dart b/lib/src/chart/scatter_chart/scatter_chart_data.dart index 99e81de68..79495683e 100644 --- a/lib/src/chart/scatter_chart/scatter_chart_data.dart +++ b/lib/src/chart/scatter_chart/scatter_chart_data.dart @@ -91,7 +91,7 @@ class ScatterChartData extends AxisChartData with EquatableMixin { final ScatterLabelSettings scatterLabelSettings; - /// Holds data for showing error indicators on the spots in this line. + /// Holds data for showing error indicators on the [scatterSpots] final FlErrorIndicatorData errorIndicatorData; @@ -761,6 +761,12 @@ class ScatterLabelSettings with EquatableMixin { ]; } +/// It is the input of the [GetSpotRangeErrorPainter] callback in +/// the [ScatterChartData.errorIndicatorData] +/// +/// It contains the [spot] and [spotIndex] that the error range +/// should be drawn for. +/// It works based on the [ScatterSpot.xError] and [ScatterSpot.yError] values. class ScatterChartSpotErrorRangeCallbackInput extends FlSpotErrorRangeCallbackInput { ScatterChartSpotErrorRangeCallbackInput({ diff --git a/lib/src/utils/canvas_wrapper.dart b/lib/src/utils/canvas_wrapper.dart index c1a5dfa74..fb5ce713f 100644 --- a/lib/src/utils/canvas_wrapper.dart +++ b/lib/src/utils/canvas_wrapper.dart @@ -119,6 +119,7 @@ class CanvasWrapper { painter.draw(canvas, spot, offset); } + /// Paints a error indicator using the [painter] void drawErrorIndicator( FlSpotErrorRangePainter painter, FlSpot origin, From 3af5175e8d70662b70bab9e79bd2a95fc391337a Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Mon, 13 Jan 2025 22:16:05 +0100 Subject: [PATCH 19/27] Update the markdown documentation --- repo_files/documentations/bar_chart.md | 3 ++- repo_files/documentations/base_chart.md | 16 +++++++++++++++- repo_files/documentations/line_chart.md | 1 + repo_files/documentations/scatter_chart.md | 4 +++- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/repo_files/documentations/bar_chart.md b/repo_files/documentations/bar_chart.md index a152eb028..abc2f4c21 100644 --- a/repo_files/documentations/bar_chart.md +++ b/repo_files/documentations/bar_chart.md @@ -32,6 +32,7 @@ When you change the chart's state, it animates to the new state internally (usin |baselineY| defines the baseline of y-axis | 0| |extraLinesData| allows extra horizontal lines to be drawn on the chart. Vertical lines are ignored when used with BarChartData, please see [#1149](https://github.com/imaNNeo/fl_chart/issues/1149), check [ExtraLinesData](base_chart.md#ExtraLinesData)|ExtraLinesData()| |rotationQuarterTurns|Rotates the chart 90 degrees (clockwise) in every quarter turns. This feature works like the [RotatedBox](https://api.flutter.dev/flutter/widgets/RotatedBox-class.html) widget. You can have horizontal BarChart by changing this value to |0| +|errorIndicatorData|Holds data for representing an error indicator (you see the error indicators if you provide the `toYErrorRange` in the [BarChartRodData](#BarChartRodData))|[ErrorIndicatorData()](base_chart.md#FlErrorIndicatorData)| ### BarChartGroupData |PropName |Description |default value| @@ -59,7 +60,7 @@ enum values {`start`, `end`, `center`, `spaceEvenly`, `spaceAround`, `spaceBetwe |borderSide|Determines the border stroke around of the bar, see [BorderSide](https://api.flutter.dev/flutter/painting/BorderSide-class.html). When `null`, it defaults to draw no stroke. |null| |backDrawRodData|if provided, draws a rod in the background of the line bar, check the [BackgroundBarChartRodData](#BackgroundBarChartRodData)|null| |rodStackItem|if you want to have stacked bar chart, provide a list of [BarChartRodStackItem](#BarChartRodStackItem), it will draw over your rod.|[]| - +|toYErrorRange|If you want to show an error range on the rod, provide [FlErrorRange](base_chart.md#FlErrorRange)|null| ### BackgroundBarChartRodData |PropName|Description|default value| diff --git a/repo_files/documentations/base_chart.md b/repo_files/documentations/base_chart.md index 1017f9327..01a8811f7 100644 --- a/repo_files/documentations/base_chart.md +++ b/repo_files/documentations/base_chart.md @@ -63,7 +63,8 @@ |:-------|:----------|:------------| |x|represents x on the coordinate system (x starts from left)|null| |y|represents y on the coordinate system (y starts from bottom)|null| - +|xError| Determines the error range of the data point using (FlErrorRange)[#FlErrorRange] (which ontains `lowerBy` and `upperValue`) for the x-axis|null| +|yError| Determines the error range of the data point using (FlErrorRange)[#FlErrorRange] (which ontains `upperBy` and `upperValue`) for the y-axis|null| ### FlLine @@ -186,3 +187,16 @@ Base class for all supported touch/pointer events. ### FLHorizontalAlignment enum values {`center`, `left`, `right`} + + +### FlErrorIndicatorData +|PropName| Description | default value | +|:-------|:------------------------------------------------------------|:-----------------------| +|show| Determines showing or not showing error indicator/threshold | true | +|painter| A callback that allows you to provide a custom painter for the error indicator| FlSimpleErrorPainter() | + +### FlErrorRange +|PropName| Description | default value | +|:-------|:-------------------------------------------------------------------------------|:-----------------------| +|lowerBy| Lower value of the error range. It is subtracted from the spot value and shoul be positive| null| +|upperBy| Upper value of the error range. It is added to the spot value and shoul be positive| null| \ No newline at end of file diff --git a/repo_files/documentations/line_chart.md b/repo_files/documentations/line_chart.md index 95e2bdfbc..0ac57b60d 100644 --- a/repo_files/documentations/line_chart.md +++ b/repo_files/documentations/line_chart.md @@ -60,6 +60,7 @@ When you change the chart's state, it animates to the new state internally (usin |shadow|It drops a shadow behind your bar, see [Shadow](https://api.flutter.dev/flutter/dart-ui/Shadow-class.html).|Shadow()| |isStepLineChart|If sets true, it draws the chart in Step Line Chart style, using `lineChartStepData`.|false| |lineChartStepData|Holds data for representing a Step Line Chart, and works only if [isStepChart] is true.|[LineChartStepData](#LineChartStepData)()| +|errorIndicatorData|Holds data for representing an error indicator (you see the error indicators if you provide the `xError` or `yError` in the [FlSpot](base_chart.md#FlSpot)).|[ErrorIndicatorData()](base_chart.md#FlErrorIndicatorData)| ### LineChartStepData |PropName|Description|default value| diff --git a/repo_files/documentations/scatter_chart.md b/repo_files/documentations/scatter_chart.md index 84e5355c9..0fb8e33b5 100644 --- a/repo_files/documentations/scatter_chart.md +++ b/repo_files/documentations/scatter_chart.md @@ -25,7 +25,7 @@ When you change the chart's state, it animates to the new state internally (usin |scatterTouchData| [ScatterTouchData](#scattertouchdata-read-about-touch-handling) holds the touch interactivity details| ScatterTouchData()| |showingTooltipIndicators| indices of showing tooltip, The point is that you need to disable touches to show these tooltips manually|[]| |rotationQuarterTurns|Rotates the chart 90 degrees (clockwise) in every quarter turns. This feature works like the [RotatedBox](https://api.flutter.dev/flutter/widgets/RotatedBox-class.html) widget|0| - +|errorIndicatorData|Holds data for representing an error indicator (you see the error indicators if you provide the `xError` or `yError` in the [ScatterSpot](#ScatterSpot))|[ErrorIndicatorData()](base_chart.md#FlErrorIndicatorData)| ### ScatterSpot |PropName |Description |default value| @@ -34,6 +34,8 @@ When you change the chart's state, it animates to the new state internally (usin |radius| radius of the showing spot| [8] |color| colors of the spot|// a color based on the values| |renderPriority| sort by this to manage overlap|0| +|xError| Determines the error range of the data point using (FlErrorRange)[base_chart.md#FlErrorRange] (which ontains `lowerBy` and `upperValue`) for the x-axis|null| +|yError| Determines the error range of the data point using (FlErrorRange)[base_chart.md#FlErrorRange] (which ontains `upperBy` and `upperValue`) for the y-axis|null| ### ScatterTouchData ([read about touch handling](handle_touches.md)) From 327f325aa31d057c5511b44b65e064c41603fd95 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Mon, 13 Jan 2025 22:16:59 +0100 Subject: [PATCH 20/27] Fix formatting issue --- lib/src/chart/scatter_chart/scatter_chart_data.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/chart/scatter_chart/scatter_chart_data.dart b/lib/src/chart/scatter_chart/scatter_chart_data.dart index 79495683e..ac9bd7e49 100644 --- a/lib/src/chart/scatter_chart/scatter_chart_data.dart +++ b/lib/src/chart/scatter_chart/scatter_chart_data.dart @@ -154,7 +154,8 @@ class ScatterChartData extends AxisChartData with EquatableMixin { Color? backgroundColor, ScatterLabelSettings? scatterLabelSettings, int? rotationQuarterTurns, - FlErrorIndicatorData? errorIndicatorData, + FlErrorIndicatorData? + errorIndicatorData, }) => ScatterChartData( scatterSpots: scatterSpots ?? this.scatterSpots, From 8ad87a1f6539bbd60e537b2a855aa5c6a1ec5dac Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 16 Jan 2025 00:00:30 +0100 Subject: [PATCH 21/27] Update the code-generation deprecated command --- .gitignore | 3 +++ Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ff7348f25..2025cda52 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,6 @@ example/android/app/.settings/org.eclipse.buildship.core.prefs example/macos/Flutter/ephemeral/ coverage/ .fvm/ + +# Files generated by dart tools +.dart_tool \ No newline at end of file diff --git a/Makefile b/Makefile index 11e3dcdf3..75d7eb910 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ sure: # To create generated files (for example mock files in unit_tests) codeGen: - flutter pub run build_runner build --delete-conflicting-outputs + dart run build_runner build --delete-conflicting-outputs showTestCoverage: flutter test --coverage From ec2ea3dd7e97662a76577321ddae04d1e78a55d1 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 16 Jan 2025 00:01:46 +0100 Subject: [PATCH 22/27] Re-run code-gen to re-generate all the .mock files --- .../bar_chart_painter_test.mocks.dart | 1488 ++++-------- .../bar_chart_renderer_test.mocks.dart | 1477 ++++------- .../base/render_base_chart_test.mocks.dart | 1968 ++++++--------- .../line_chart_painter_test.mocks.dart | 2149 ++++++----------- .../line_chart_renderer_test.mocks.dart | 1847 +++++--------- .../pie_chart_painter_test.mocks.dart | 1488 ++++-------- .../pie_chart_renderer_test.mocks.dart | 1457 ++++------- .../radar_chart_painter_test.mocks.dart | 1488 ++++-------- .../radar_chart_renderer_test.mocks.dart | 1419 ++++------- .../scatter_chart_painter_test.mocks.dart | 1488 ++++-------- .../scatter_chart_renderer_test.mocks.dart | 1432 ++++------- test/utils/canvas_wrapper_test.mocks.dart | 1020 +++----- test/utils/utils_test.mocks.dart | 500 ++-- 13 files changed, 6370 insertions(+), 12851 deletions(-) diff --git a/test/chart/bar_chart/bar_chart_painter_test.mocks.dart b/test/chart/bar_chart/bar_chart_painter_test.mocks.dart index c70a981ee..5ee28d84a 100644 --- a/test/chart/bar_chart/bar_chart_painter_test.mocks.dart +++ b/test/chart/bar_chart/bar_chart_painter_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/chart/bar_chart/bar_chart_painter_test.dart. // Do not manually edit this file. @@ -22,49 +22,30 @@ import 'package:mockito/src/dummies.dart' as _i9; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { - _FakeRect_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCanvas_1 extends _i1.SmartFake implements _i2.Canvas { - _FakeCanvas_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCanvas_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSize_2 extends _i1.SmartFake implements _i2.Size { - _FakeSize_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSize_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWidget_3 extends _i1.SmartFake implements _i3.Widget { - _FakeWidget_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -73,13 +54,8 @@ class _FakeWidget_3 extends _i1.SmartFake implements _i3.Widget { class _FakeInheritedWidget_4 extends _i1.SmartFake implements _i3.InheritedWidget { - _FakeInheritedWidget_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -88,40 +64,24 @@ class _FakeInheritedWidget_4 extends _i1.SmartFake class _FakeDiagnosticsNode_5 extends _i1.SmartFake implements _i3.DiagnosticsNode { - _FakeDiagnosticsNode_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i4.TextTreeConfiguration? parentConfiguration, _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } class _FakeOffset_6 extends _i1.SmartFake implements _i2.Offset { - _FakeOffset_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOffset_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBorderSide_7 extends _i1.SmartFake implements _i3.BorderSide { - _FakeBorderSide_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBorderSide_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -129,13 +89,8 @@ class _FakeBorderSide_7 extends _i1.SmartFake implements _i3.BorderSide { } class _FakeTextStyle_8 extends _i1.SmartFake implements _i3.TextStyle { - _FakeTextStyle_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeTextStyle_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -152,331 +107,170 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void restoreToCount(int? count) => super.noSuchMethod( - Invocation.method( - #restoreToCount, - [count], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); @override - int getSaveCount() => (super.noSuchMethod( - Invocation.method( - #getSaveCount, - [], - ), - returnValue: 0, - ) as int); + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override - void scale( - double? sx, [ - double? sy, - ]) => - super.noSuchMethod( - Invocation.method( - #scale, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radians) => super.noSuchMethod( - Invocation.method( - #rotate, - [radians], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); @override - void skew( - double? sx, - double? sy, - ) => - super.noSuchMethod( - Invocation.method( - #skew, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); @override void transform(_i5.Float64List? matrix4) => super.noSuchMethod( - Invocation.method( - #transform, - [matrix4], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); @override - _i5.Float64List getTransform() => (super.noSuchMethod( - Invocation.method( - #getTransform, - [], - ), - returnValue: _i5.Float64List(0), - ) as _i5.Float64List); + _i5.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i5.Float64List(0), + ) + as _i5.Float64List); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void clipRRect( - _i2.RRect? rrect, { - bool? doAntiAlias = true, - }) => + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipRRect, - [rrect], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - _i2.Rect getLocalClipBounds() => (super.noSuchMethod( - Invocation.method( - #getLocalClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getLocalClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - _i2.Rect getDestinationClipBounds() => (super.noSuchMethod( - Invocation.method( - #getDestinationClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getDestinationClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - void drawColor( - _i2.Color? color, - _i2.BlendMode? blendMode, - ) => + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); + + @override + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); + + @override + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => super.noSuchMethod( - Invocation.method( - #drawColor, - [ - color, - blendMode, - ], - ), + Invocation.method(#drawColor, [color, blendMode]), returnValueForMissingStub: null, ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override void drawPaint(_i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawPaint, - [paint], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override - void drawDRRect( - _i2.RRect? outer, - _i2.RRect? inner, - _i2.Paint? paint, - ) => + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawDRRect, - [ - outer, - inner, - paint, - ], - ), + Invocation.method(#drawDRRect, [outer, inner, paint]), returnValueForMissingStub: null, ); @override - void drawOval( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawOval, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawCircle( - _i2.Offset? c, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - c, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [c, radius, paint]), returnValueForMissingStub: null, ); @@ -487,52 +281,27 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @@ -542,19 +311,10 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? src, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageRect, - [ - image, - src, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawImageNine( @@ -562,42 +322,21 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? center, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageNine, - [ - image, - center, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawParagraph( - _i2.Paragraph? paragraph, - _i2.Offset? offset, - ) => + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawParagraph, - [ - paragraph, - offset, - ], - ), + Invocation.method(#drawParagraph, [paragraph, offset]), returnValueForMissingStub: null, ); @@ -606,54 +345,30 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.PointMode? pointMode, List<_i2.Offset>? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawRawPoints( _i2.PointMode? pointMode, _i5.Float32List? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawVertices( _i2.Vertices? vertices, _i2.BlendMode? blendMode, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawVertices, - [ - vertices, - blendMode, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); @override void drawAtlas( @@ -664,22 +379,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawAtlas, - [ - atlas, - transforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawRawAtlas( @@ -690,22 +401,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawAtlas, - [ - atlas, - rstTransforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawShadow( @@ -713,19 +420,15 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Color? color, double? elevation, bool? transparentOccluder, - ) => - super.noSuchMethod( - Invocation.method( - #drawShadow, - [ - path, - color, - elevation, - transparentOccluder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); } /// A class which mocks [CanvasWrapper]. @@ -737,222 +440,114 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { } @override - _i2.Canvas get canvas => (super.noSuchMethod( - Invocation.getter(#canvas), - returnValue: _FakeCanvas_1( - this, - Invocation.getter(#canvas), - ), - ) as _i2.Canvas); + _i2.Canvas get canvas => + (super.noSuchMethod( + Invocation.getter(#canvas), + returnValue: _FakeCanvas_1(this, Invocation.getter(#canvas)), + ) + as _i2.Canvas); @override - _i2.Size get size => (super.noSuchMethod( - Invocation.getter(#size), - returnValue: _FakeSize_2( - this, - Invocation.getter(#size), - ), - ) as _i2.Size); + _i2.Size get size => + (super.noSuchMethod( + Invocation.getter(#size), + returnValue: _FakeSize_2(this, Invocation.getter(#size)), + ) + as _i2.Size); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radius) => super.noSuchMethod( - Invocation.method( - #rotate, - [radius], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radius]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override - void drawCircle( - _i2.Offset? center, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? center, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - center, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [center, radius, paint]), returnValueForMissingStub: null, ); @@ -963,52 +558,31 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawText( _i3.TextPainter? tp, _i2.Offset? offset, [ double? rotateAngle, - ]) => - super.noSuchMethod( - Invocation.method( - #drawText, - [ - tp, - offset, - rotateAngle, - ], - ), - returnValueForMissingStub: null, - ); + ]) => super.noSuchMethod( + Invocation.method(#drawText, [tp, offset, rotateAngle]), + returnValueForMissingStub: null, + ); @override - void drawVerticalText( - _i3.TextPainter? tp, - _i2.Offset? offset, - ) => + void drawVerticalText(_i3.TextPainter? tp, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawVerticalText, - [ - tp, - offset, - ], - ), + Invocation.method(#drawVerticalText, [tp, offset]), returnValueForMissingStub: null, ); @@ -1017,18 +591,28 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i7.FlDotPainter? painter, _i7.FlSpot? spot, _i2.Offset? offset, - ) => - super.noSuchMethod( - Invocation.method( - #drawDot, - [ - painter, - spot, - offset, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDot, [painter, spot, offset]), + returnValueForMissingStub: null, + ); + + @override + void drawErrorIndicator( + _i7.FlSpotErrorRangePainter? painter, + _i7.FlSpot? origin, + _i2.Offset? offset, + _i2.Rect? errorRelativeRect, + _i7.AxisChartData? axisData, + ) => super.noSuchMethod( + Invocation.method(#drawErrorIndicator, [ + painter, + origin, + offset, + errorRelativeRect, + axisData, + ]), + returnValueForMissingStub: null, + ); @override void drawRotated({ @@ -1037,21 +621,16 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i2.Offset? drawOffset = _i2.Offset.zero, required double? angle, required _i6.DrawCallback? drawCallback, - }) => - super.noSuchMethod( - Invocation.method( - #drawRotated, - [], - { - #size: size, - #rotationOffset: rotationOffset, - #drawOffset: drawOffset, - #angle: angle, - #drawCallback: drawCallback, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#drawRotated, [], { + #size: size, + #rotationOffset: rotationOffset, + #drawOffset: drawOffset, + #angle: angle, + #drawCallback: drawCallback, + }), + returnValueForMissingStub: null, + ); @override void drawDashedLine( @@ -1059,19 +638,10 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i2.Offset? to, _i2.Paint? painter, List? dashArray, - ) => - super.noSuchMethod( - Invocation.method( - #drawDashedLine, - [ - from, - to, - painter, - dashArray, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDashedLine, [from, to, painter, dashArray]), + returnValueForMissingStub: null, + ); } /// A class which mocks [BuildContext]. @@ -1083,25 +653,25 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { } @override - _i3.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_3( - this, - Invocation.getter(#widget), - ), - ) as _i3.Widget); + _i3.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_3(this, Invocation.getter(#widget)), + ) + as _i3.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i3.InheritedWidget dependOnInheritedElement( @@ -1109,47 +679,39 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_4( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i3.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_4( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i3.InheritedWidget); @override void visitAncestorElements(_i3.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i3.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i3.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -1159,20 +721,13 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); @override _i3.DiagnosticsNode describeWidget( @@ -1180,48 +735,36 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); - - @override - List<_i3.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); + + @override + List<_i3.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i3.DiagnosticsNode>[], - ) as List<_i3.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i3.DiagnosticsNode>[], + ) + as List<_i3.DiagnosticsNode>); @override _i3.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i3.DiagnosticsNode); } /// A class which mocks [Utils]. @@ -1233,91 +776,49 @@ class MockUtils extends _i1.Mock implements _i8.Utils { } @override - double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #radians, - [degrees], - ), - returnValue: 0.0, - ) as double); - - @override - double degrees(double? radians) => (super.noSuchMethod( - Invocation.method( - #degrees, - [radians], - ), - returnValue: 0.0, - ) as double); - - @override - _i2.Size getDefaultSize(_i2.Size? screenSize) => (super.noSuchMethod( - Invocation.method( - #getDefaultSize, - [screenSize], - ), - returnValue: _FakeSize_2( - this, - Invocation.method( - #getDefaultSize, - [screenSize], - ), - ), - ) as _i2.Size); - - @override - double translateRotatedPosition( - double? size, - double? degree, - ) => + double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #translateRotatedPosition, - [ - size, - degree, - ], - ), - returnValue: 0.0, - ) as double); - - @override - _i2.Offset calculateRotationOffset( - _i2.Size? size, - double? degree, - ) => + Invocation.method(#radians, [degrees]), + returnValue: 0.0, + ) + as double); + + @override + double degrees(double? radians) => + (super.noSuchMethod( + Invocation.method(#degrees, [radians]), + returnValue: 0.0, + ) + as double); + + @override + double translateRotatedPosition(double? size, double? degree) => + (super.noSuchMethod( + Invocation.method(#translateRotatedPosition, [size, degree]), + returnValue: 0.0, + ) + as double); + + @override + _i2.Offset calculateRotationOffset(_i2.Size? size, double? degree) => (super.noSuchMethod( - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - returnValue: _FakeOffset_6( - this, - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - ), - ) as _i2.Offset); + Invocation.method(#calculateRotationOffset, [size, degree]), + returnValue: _FakeOffset_6( + this, + Invocation.method(#calculateRotationOffset, [size, degree]), + ), + ) + as _i2.Offset); @override _i3.BorderRadius? normalizeBorderRadius( _i3.BorderRadius? borderRadius, double? width, ) => - (super.noSuchMethod(Invocation.method( - #normalizeBorderRadius, - [ - borderRadius, - width, - ], - )) as _i3.BorderRadius?); + (super.noSuchMethod( + Invocation.method(#normalizeBorderRadius, [borderRadius, width]), + ) + as _i3.BorderRadius?); @override _i3.BorderSide normalizeBorderSide( @@ -1325,24 +826,13 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? width, ) => (super.noSuchMethod( - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - returnValue: _FakeBorderSide_7( - this, - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - ), - ) as _i3.BorderSide); + Invocation.method(#normalizeBorderSide, [borderSide, width]), + returnValue: _FakeBorderSide_7( + this, + Invocation.method(#normalizeBorderSide, [borderSide, width]), + ), + ) + as _i3.BorderSide); @override double getEfficientInterval( @@ -1351,62 +841,41 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? pixelPerInterval = 40.0, }) => (super.noSuchMethod( - Invocation.method( - #getEfficientInterval, - [ - axisViewSize, - diffInAxis, - ], - {#pixelPerInterval: pixelPerInterval}, - ), - returnValue: 0.0, - ) as double); - - @override - double roundInterval(double? input) => (super.noSuchMethod( - Invocation.method( - #roundInterval, - [input], - ), - returnValue: 0.0, - ) as double); - - @override - int getFractionDigits(double? value) => (super.noSuchMethod( - Invocation.method( - #getFractionDigits, - [value], - ), - returnValue: 0, - ) as int); - - @override - String formatNumber( - double? axisMin, - double? axisMax, - double? axisValue, - ) => + Invocation.method( + #getEfficientInterval, + [axisViewSize, diffInAxis], + {#pixelPerInterval: pixelPerInterval}, + ), + returnValue: 0.0, + ) + as double); + + @override + double roundInterval(double? input) => + (super.noSuchMethod( + Invocation.method(#roundInterval, [input]), + returnValue: 0.0, + ) + as double); + + @override + int getFractionDigits(double? value) => + (super.noSuchMethod( + Invocation.method(#getFractionDigits, [value]), + returnValue: 0, + ) + as int); + + @override + String formatNumber(double? axisMin, double? axisMax, double? axisValue) => (super.noSuchMethod( - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - returnValue: _i9.dummyValue( - this, - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - ), - ) as String); + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + returnValue: _i9.dummyValue( + this, + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + ), + ) + as String); @override _i3.TextStyle getThemeAwareTextStyle( @@ -1414,24 +883,19 @@ class MockUtils extends _i1.Mock implements _i8.Utils { _i3.TextStyle? providedStyle, ) => (super.noSuchMethod( - Invocation.method( - #getThemeAwareTextStyle, - [ - context, - providedStyle, - ], - ), - returnValue: _FakeTextStyle_8( - this, - Invocation.method( - #getThemeAwareTextStyle, - [ + Invocation.method(#getThemeAwareTextStyle, [ context, providedStyle, - ], - ), - ), - ) as _i3.TextStyle); + ]), + returnValue: _FakeTextStyle_8( + this, + Invocation.method(#getThemeAwareTextStyle, [ + context, + providedStyle, + ]), + ), + ) + as _i3.TextStyle); @override double getBestInitialIntervalValue( @@ -1441,24 +905,20 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? baseline = 0.0, }) => (super.noSuchMethod( - Invocation.method( - #getBestInitialIntervalValue, - [ - min, - max, - interval, - ], - {#baseline: baseline}, - ), - returnValue: 0.0, - ) as double); - - @override - double convertRadiusToSigma(double? radius) => (super.noSuchMethod( - Invocation.method( - #convertRadiusToSigma, - [radius], - ), - returnValue: 0.0, - ) as double); + Invocation.method( + #getBestInitialIntervalValue, + [min, max, interval], + {#baseline: baseline}, + ), + returnValue: 0.0, + ) + as double); + + @override + double convertRadiusToSigma(double? radius) => + (super.noSuchMethod( + Invocation.method(#convertRadiusToSigma, [radius]), + returnValue: 0.0, + ) + as double); } diff --git a/test/chart/bar_chart/bar_chart_renderer_test.mocks.dart b/test/chart/bar_chart/bar_chart_renderer_test.mocks.dart index 7a7585fde..ffd57bf13 100644 --- a/test/chart/bar_chart/bar_chart_renderer_test.mocks.dart +++ b/test/chart/bar_chart/bar_chart_renderer_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/chart/bar_chart/bar_chart_renderer_test.dart. // Do not manually edit this file. @@ -27,51 +27,32 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { - _FakeRect_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCanvas_1 extends _i1.SmartFake implements _i2.Canvas { - _FakeCanvas_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCanvas_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePaintingContext_2 extends _i1.SmartFake implements _i3.PaintingContext { - _FakePaintingContext_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePaintingContext_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeColorFilterLayer_3 extends _i1.SmartFake implements _i4.ColorFilterLayer { - _FakeColorFilterLayer_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeColorFilterLayer_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -79,13 +60,8 @@ class _FakeColorFilterLayer_3 extends _i1.SmartFake } class _FakeOpacityLayer_4 extends _i1.SmartFake implements _i4.OpacityLayer { - _FakeOpacityLayer_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOpacityLayer_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -93,13 +69,8 @@ class _FakeOpacityLayer_4 extends _i1.SmartFake implements _i4.OpacityLayer { } class _FakeWidget_5 extends _i1.SmartFake implements _i6.Widget { - _FakeWidget_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -108,13 +79,8 @@ class _FakeWidget_5 extends _i1.SmartFake implements _i6.Widget { class _FakeInheritedWidget_6 extends _i1.SmartFake implements _i6.InheritedWidget { - _FakeInheritedWidget_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -123,20 +89,14 @@ class _FakeInheritedWidget_6 extends _i1.SmartFake class _FakeDiagnosticsNode_7 extends _i1.SmartFake implements _i5.DiagnosticsNode { - _FakeDiagnosticsNode_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i5.TextTreeConfiguration? parentConfiguration, _i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } /// A class which mocks [Canvas]. @@ -149,331 +109,170 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void restoreToCount(int? count) => super.noSuchMethod( - Invocation.method( - #restoreToCount, - [count], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); @override - int getSaveCount() => (super.noSuchMethod( - Invocation.method( - #getSaveCount, - [], - ), - returnValue: 0, - ) as int); + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override - void scale( - double? sx, [ - double? sy, - ]) => - super.noSuchMethod( - Invocation.method( - #scale, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radians) => super.noSuchMethod( - Invocation.method( - #rotate, - [radians], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); @override - void skew( - double? sx, - double? sy, - ) => - super.noSuchMethod( - Invocation.method( - #skew, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); @override void transform(_i7.Float64List? matrix4) => super.noSuchMethod( - Invocation.method( - #transform, - [matrix4], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); @override - _i7.Float64List getTransform() => (super.noSuchMethod( - Invocation.method( - #getTransform, - [], - ), - returnValue: _i7.Float64List(0), - ) as _i7.Float64List); + _i7.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i7.Float64List(0), + ) + as _i7.Float64List); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void clipRRect( - _i2.RRect? rrect, { - bool? doAntiAlias = true, - }) => + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipRRect, - [rrect], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - _i2.Rect getLocalClipBounds() => (super.noSuchMethod( - Invocation.method( - #getLocalClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getLocalClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - _i2.Rect getDestinationClipBounds() => (super.noSuchMethod( - Invocation.method( - #getDestinationClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getDestinationClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - void drawColor( - _i2.Color? color, - _i2.BlendMode? blendMode, - ) => + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); + + @override + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); + + @override + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => super.noSuchMethod( - Invocation.method( - #drawColor, - [ - color, - blendMode, - ], - ), + Invocation.method(#drawColor, [color, blendMode]), returnValueForMissingStub: null, ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override void drawPaint(_i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawPaint, - [paint], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override - void drawDRRect( - _i2.RRect? outer, - _i2.RRect? inner, - _i2.Paint? paint, - ) => + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawDRRect, - [ - outer, - inner, - paint, - ], - ), + Invocation.method(#drawDRRect, [outer, inner, paint]), returnValueForMissingStub: null, ); @override - void drawOval( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawOval, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawCircle( - _i2.Offset? c, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - c, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [c, radius, paint]), returnValueForMissingStub: null, ); @@ -484,52 +283,27 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @@ -539,19 +313,10 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? src, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageRect, - [ - image, - src, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawImageNine( @@ -559,42 +324,21 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? center, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageNine, - [ - image, - center, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawParagraph( - _i2.Paragraph? paragraph, - _i2.Offset? offset, - ) => + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawParagraph, - [ - paragraph, - offset, - ], - ), + Invocation.method(#drawParagraph, [paragraph, offset]), returnValueForMissingStub: null, ); @@ -603,54 +347,30 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.PointMode? pointMode, List<_i2.Offset>? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawRawPoints( _i2.PointMode? pointMode, _i7.Float32List? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawVertices( _i2.Vertices? vertices, _i2.BlendMode? blendMode, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawVertices, - [ - vertices, - blendMode, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); @override void drawAtlas( @@ -661,22 +381,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawAtlas, - [ - atlas, - transforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawRawAtlas( @@ -687,22 +403,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawAtlas, - [ - atlas, - rstTransforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawShadow( @@ -710,19 +422,15 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Color? color, double? elevation, bool? transparentOccluder, - ) => - super.noSuchMethod( - Invocation.method( - #drawShadow, - [ - path, - color, - elevation, - transparentOccluder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); } /// A class which mocks [PaintingContext]. @@ -734,93 +442,65 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { } @override - _i2.Rect get estimatedBounds => (super.noSuchMethod( - Invocation.getter(#estimatedBounds), - returnValue: _FakeRect_0( - this, - Invocation.getter(#estimatedBounds), - ), - ) as _i2.Rect); + _i2.Rect get estimatedBounds => + (super.noSuchMethod( + Invocation.getter(#estimatedBounds), + returnValue: _FakeRect_0(this, Invocation.getter(#estimatedBounds)), + ) + as _i2.Rect); @override - _i2.Canvas get canvas => (super.noSuchMethod( - Invocation.getter(#canvas), - returnValue: _FakeCanvas_1( - this, - Invocation.getter(#canvas), - ), - ) as _i2.Canvas); + _i2.Canvas get canvas => + (super.noSuchMethod( + Invocation.getter(#canvas), + returnValue: _FakeCanvas_1(this, Invocation.getter(#canvas)), + ) + as _i2.Canvas); @override - void paintChild( - _i3.RenderObject? child, - _i2.Offset? offset, - ) => + void paintChild(_i3.RenderObject? child, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #paintChild, - [ - child, - offset, - ], - ), + Invocation.method(#paintChild, [child, offset]), returnValueForMissingStub: null, ); @override void appendLayer(_i4.Layer? layer) => super.noSuchMethod( - Invocation.method( - #appendLayer, - [layer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#appendLayer, [layer]), + returnValueForMissingStub: null, + ); @override _i2.VoidCallback addCompositionCallback(_i4.CompositionCallback? callback) => (super.noSuchMethod( - Invocation.method( - #addCompositionCallback, - [callback], - ), - returnValue: () {}, - ) as _i2.VoidCallback); + Invocation.method(#addCompositionCallback, [callback]), + returnValue: () {}, + ) + as _i2.VoidCallback); @override void stopRecordingIfNeeded() => super.noSuchMethod( - Invocation.method( - #stopRecordingIfNeeded, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#stopRecordingIfNeeded, []), + returnValueForMissingStub: null, + ); @override void setIsComplexHint() => super.noSuchMethod( - Invocation.method( - #setIsComplexHint, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#setIsComplexHint, []), + returnValueForMissingStub: null, + ); @override void setWillChangeHint() => super.noSuchMethod( - Invocation.method( - #setWillChangeHint, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#setWillChangeHint, []), + returnValueForMissingStub: null, + ); @override void addLayer(_i4.Layer? layer) => super.noSuchMethod( - Invocation.method( - #addLayer, - [layer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addLayer, [layer]), + returnValueForMissingStub: null, + ); @override void pushLayer( @@ -828,19 +508,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i3.PaintingContextCallback? painter, _i2.Offset? offset, { _i2.Rect? childPaintBounds, - }) => - super.noSuchMethod( - Invocation.method( - #pushLayer, - [ - childLayer, - painter, - offset, - ], - {#childPaintBounds: childPaintBounds}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #pushLayer, + [childLayer, painter, offset], + {#childPaintBounds: childPaintBounds}, + ), + returnValueForMissingStub: null, + ); @override _i3.PaintingContext createChildContext( @@ -848,24 +523,13 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Rect? bounds, ) => (super.noSuchMethod( - Invocation.method( - #createChildContext, - [ - childLayer, - bounds, - ], - ), - returnValue: _FakePaintingContext_2( - this, - Invocation.method( - #createChildContext, - [ - childLayer, - bounds, - ], - ), - ), - ) as _i3.PaintingContext); + Invocation.method(#createChildContext, [childLayer, bounds]), + returnValue: _FakePaintingContext_2( + this, + Invocation.method(#createChildContext, [childLayer, bounds]), + ), + ) + as _i3.PaintingContext); @override _i4.ClipRectLayer? pushClipRect( @@ -876,19 +540,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.hardEdge, _i4.ClipRectLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipRect, - [ - needsCompositing, - offset, - clipRect, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipRectLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipRect, + [needsCompositing, offset, clipRect, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipRectLayer?); @override _i4.ClipRRectLayer? pushClipRRect( @@ -900,20 +559,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.antiAlias, _i4.ClipRRectLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipRRect, - [ - needsCompositing, - offset, - bounds, - clipRRect, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipRRectLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipRRect, + [needsCompositing, offset, bounds, clipRRect, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipRRectLayer?); @override _i4.ClipPathLayer? pushClipPath( @@ -925,20 +578,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.antiAlias, _i4.ClipPathLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipPath, - [ - needsCompositing, - offset, - bounds, - clipPath, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipPathLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipPath, + [needsCompositing, offset, bounds, clipPath, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipPathLayer?); @override _i4.ColorFilterLayer pushColorFilter( @@ -948,28 +595,21 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i4.ColorFilterLayer? oldLayer, }) => (super.noSuchMethod( - Invocation.method( - #pushColorFilter, - [ - offset, - colorFilter, - painter, - ], - {#oldLayer: oldLayer}, - ), - returnValue: _FakeColorFilterLayer_3( - this, - Invocation.method( - #pushColorFilter, - [ - offset, - colorFilter, - painter, - ], - {#oldLayer: oldLayer}, - ), - ), - ) as _i4.ColorFilterLayer); + Invocation.method( + #pushColorFilter, + [offset, colorFilter, painter], + {#oldLayer: oldLayer}, + ), + returnValue: _FakeColorFilterLayer_3( + this, + Invocation.method( + #pushColorFilter, + [offset, colorFilter, painter], + {#oldLayer: oldLayer}, + ), + ), + ) + as _i4.ColorFilterLayer); @override _i4.TransformLayer? pushTransform( @@ -979,16 +619,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i3.PaintingContextCallback? painter, { _i4.TransformLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushTransform, - [ - needsCompositing, - offset, - transform, - painter, - ], - {#oldLayer: oldLayer}, - )) as _i4.TransformLayer?); + (super.noSuchMethod( + Invocation.method( + #pushTransform, + [needsCompositing, offset, transform, painter], + {#oldLayer: oldLayer}, + ), + ) + as _i4.TransformLayer?); @override _i4.OpacityLayer pushOpacity( @@ -998,28 +636,21 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i4.OpacityLayer? oldLayer, }) => (super.noSuchMethod( - Invocation.method( - #pushOpacity, - [ - offset, - alpha, - painter, - ], - {#oldLayer: oldLayer}, - ), - returnValue: _FakeOpacityLayer_4( - this, - Invocation.method( - #pushOpacity, - [ - offset, - alpha, - painter, - ], - {#oldLayer: oldLayer}, - ), - ), - ) as _i4.OpacityLayer); + Invocation.method( + #pushOpacity, + [offset, alpha, painter], + {#oldLayer: oldLayer}, + ), + returnValue: _FakeOpacityLayer_4( + this, + Invocation.method( + #pushOpacity, + [offset, alpha, painter], + {#oldLayer: oldLayer}, + ), + ), + ) + as _i4.OpacityLayer); @override void clipPathAndPaint( @@ -1027,19 +658,10 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipPathAndPaint, - [ - path, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipPathAndPaint, [path, clipBehavior, bounds, painter]), + returnValueForMissingStub: null, + ); @override void clipRRectAndPaint( @@ -1047,19 +669,15 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipRRectAndPaint, - [ - rrect, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipRRectAndPaint, [ + rrect, + clipBehavior, + bounds, + painter, + ]), + returnValueForMissingStub: null, + ); @override void clipRectAndPaint( @@ -1067,19 +685,10 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipRectAndPaint, - [ - rect, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipRectAndPaint, [rect, clipBehavior, bounds, painter]), + returnValueForMissingStub: null, + ); } /// A class which mocks [BuildContext]. @@ -1091,25 +700,25 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { } @override - _i6.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_5( - this, - Invocation.getter(#widget), - ), - ) as _i6.Widget); + _i6.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_5(this, Invocation.getter(#widget)), + ) + as _i6.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i6.InheritedWidget dependOnInheritedElement( @@ -1117,47 +726,39 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_6( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i6.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_6( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i6.InheritedWidget); @override void visitAncestorElements(_i6.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i6.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i9.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -1167,20 +768,13 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { _i5.DiagnosticsTreeStyle? style = _i5.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i5.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i5.DiagnosticsNode); @override _i5.DiagnosticsNode describeWidget( @@ -1188,48 +782,36 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { _i5.DiagnosticsTreeStyle? style = _i5.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i5.DiagnosticsNode); - - @override - List<_i5.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i5.DiagnosticsNode); + + @override + List<_i5.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i5.DiagnosticsNode>[], - ) as List<_i5.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i5.DiagnosticsNode>[], + ) + as List<_i5.DiagnosticsNode>); @override _i5.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i5.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i5.DiagnosticsNode); } /// A class which mocks [BarChartPainter]. @@ -1245,18 +827,10 @@ class MockBarChartPainter extends _i1.Mock implements _i10.BarChartPainter { _i6.BuildContext? context, _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.BarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #paint, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#paint, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override List<_i10.GroupBarsPosition> calculateGroupAndBarsPosition( @@ -1265,34 +839,38 @@ class MockBarChartPainter extends _i1.Mock implements _i10.BarChartPainter { List<_i13.BarChartGroupData>? barGroups, ) => (super.noSuchMethod( - Invocation.method( - #calculateGroupAndBarsPosition, - [ - viewSize, - groupsX, - barGroups, - ], - ), - returnValue: <_i10.GroupBarsPosition>[], - ) as List<_i10.GroupBarsPosition>); + Invocation.method(#calculateGroupAndBarsPosition, [ + viewSize, + groupsX, + barGroups, + ]), + returnValue: <_i10.GroupBarsPosition>[], + ) + as List<_i10.GroupBarsPosition>); @override void drawBars( _i11.CanvasWrapper? canvasWrapper, List<_i10.GroupBarsPosition>? groupBarsPosition, _i12.PaintHolder<_i13.BarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBars, - [ - canvasWrapper, - groupBarsPosition, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBars, [canvasWrapper, groupBarsPosition, holder]), + returnValueForMissingStub: null, + ); + + @override + void drawErrorIndicatorData( + _i11.CanvasWrapper? canvasWrapper, + List<_i10.GroupBarsPosition>? groupBarsPosition, + _i12.PaintHolder<_i13.BarChartData>? holder, + ) => super.noSuchMethod( + Invocation.method(#drawErrorIndicatorData, [ + canvasWrapper, + groupBarsPosition, + holder, + ]), + returnValueForMissingStub: null, + ); @override void drawTouchTooltip( @@ -1305,24 +883,20 @@ class MockBarChartPainter extends _i1.Mock implements _i10.BarChartPainter { _i13.BarChartRodData? showOnRodData, int? barRodIndex, _i12.PaintHolder<_i13.BarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawTouchTooltip, - [ - context, - canvasWrapper, - groupPositions, - tooltipData, - showOnBarGroup, - barGroupIndex, - showOnRodData, - barRodIndex, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawTouchTooltip, [ + context, + canvasWrapper, + groupPositions, + tooltipData, + showOnBarGroup, + barGroupIndex, + showOnRodData, + barRodIndex, + holder, + ]), + returnValueForMissingStub: null, + ); @override void drawStackItemBorderStroke( @@ -1334,23 +908,19 @@ class MockBarChartPainter extends _i1.Mock implements _i10.BarChartPainter { _i2.RRect? barRRect, _i2.Size? drawSize, _i12.PaintHolder<_i13.BarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawStackItemBorderStroke, - [ - canvasWrapper, - stackItem, - index, - rodStacksSize, - barThickSize, - barRRect, - drawSize, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawStackItemBorderStroke, [ + canvasWrapper, + stackItem, + index, + rodStacksSize, + barThickSize, + barRRect, + drawSize, + holder, + ]), + returnValueForMissingStub: null, + ); @override _i13.BarTouchedSpot? handleTouch( @@ -1358,80 +928,47 @@ class MockBarChartPainter extends _i1.Mock implements _i10.BarChartPainter { _i2.Size? size, _i12.PaintHolder<_i13.BarChartData>? holder, ) => - (super.noSuchMethod(Invocation.method( - #handleTouch, - [ - localPosition, - size, - holder, - ], - )) as _i13.BarTouchedSpot?); + (super.noSuchMethod( + Invocation.method(#handleTouch, [localPosition, size, holder]), + ) + as _i13.BarTouchedSpot?); @override void drawGrid( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.BarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawGrid, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawGrid, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawBackground( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.BarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBackground, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBackground, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawRangeAnnotation( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.BarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawRangeAnnotation, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRangeAnnotation, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawExtraLines( _i6.BuildContext? context, _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.BarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawExtraLines, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawExtraLines, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawHorizontalLines( @@ -1439,19 +976,15 @@ class MockBarChartPainter extends _i1.Mock implements _i10.BarChartPainter { _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.BarChartData>? holder, _i2.Size? viewSize, - ) => - super.noSuchMethod( - Invocation.method( - #drawHorizontalLines, - [ - context, - canvasWrapper, - holder, - viewSize, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawHorizontalLines, [ + context, + canvasWrapper, + holder, + viewSize, + ]), + returnValueForMissingStub: null, + ); @override void drawVerticalLines( @@ -1459,19 +992,15 @@ class MockBarChartPainter extends _i1.Mock implements _i10.BarChartPainter { _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.BarChartData>? holder, _i2.Size? viewSize, - ) => - super.noSuchMethod( - Invocation.method( - #drawVerticalLines, - [ - context, - canvasWrapper, - holder, - viewSize, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVerticalLines, [ + context, + canvasWrapper, + holder, + viewSize, + ]), + returnValueForMissingStub: null, + ); @override double getPixelX( @@ -1480,16 +1009,10 @@ class MockBarChartPainter extends _i1.Mock implements _i10.BarChartPainter { _i12.PaintHolder<_i13.BarChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #getPixelX, - [ - spotX, - viewSize, - holder, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getPixelX, [spotX, viewSize, holder]), + returnValue: 0.0, + ) + as double); @override double getPixelY( @@ -1498,16 +1021,10 @@ class MockBarChartPainter extends _i1.Mock implements _i10.BarChartPainter { _i12.PaintHolder<_i13.BarChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #getPixelY, - [ - spotY, - viewSize, - holder, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getPixelY, [spotY, viewSize, holder]), + returnValue: 0.0, + ) + as double); @override double getTooltipLeft( @@ -1517,15 +1034,13 @@ class MockBarChartPainter extends _i1.Mock implements _i10.BarChartPainter { double? tooltipHorizontalOffset, ) => (super.noSuchMethod( - Invocation.method( - #getTooltipLeft, - [ - dx, - tooltipWidth, - tooltipHorizontalAlignment, - tooltipHorizontalOffset, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getTooltipLeft, [ + dx, + tooltipWidth, + tooltipHorizontalAlignment, + tooltipHorizontalOffset, + ]), + returnValue: 0.0, + ) + as double); } diff --git a/test/chart/base/render_base_chart_test.mocks.dart b/test/chart/base/render_base_chart_test.mocks.dart index 6dd17827b..d7a7d9e22 100644 --- a/test/chart/base/render_base_chart_test.mocks.dart +++ b/test/chart/base/render_base_chart_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/chart/base/render_base_chart_test.dart. // Do not manually edit this file. @@ -27,19 +27,15 @@ import 'package:mockito/src/dummies.dart' as _i8; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeWidget_0 extends _i1.SmartFake implements _i2.Widget { - _FakeWidget_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -48,13 +44,8 @@ class _FakeWidget_0 extends _i1.SmartFake implements _i2.Widget { class _FakeInheritedWidget_1 extends _i1.SmartFake implements _i2.InheritedWidget { - _FakeInheritedWidget_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -63,41 +54,25 @@ class _FakeInheritedWidget_1 extends _i1.SmartFake class _FakeDiagnosticsNode_2 extends _i1.SmartFake implements _i3.DiagnosticsNode { - _FakeDiagnosticsNode_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i3.TextTreeConfiguration? parentConfiguration, _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } class _FakeVelocityTracker_3 extends _i1.SmartFake implements _i4.VelocityTracker { - _FakeVelocityTracker_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeVelocityTracker_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeOffsetPair_4 extends _i1.SmartFake implements _i5.OffsetPair { - _FakeOffsetPair_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOffsetPair_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [BuildContext]. @@ -109,25 +84,25 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext { } @override - _i2.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_0( - this, - Invocation.getter(#widget), - ), - ) as _i2.Widget); + _i2.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_0(this, Invocation.getter(#widget)), + ) + as _i2.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i2.InheritedWidget dependOnInheritedElement( @@ -135,47 +110,39 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_1( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i2.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_1( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i2.InheritedWidget); @override void visitAncestorElements(_i2.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i2.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i6.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -185,20 +152,13 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext { _i3.DiagnosticsTreeStyle? style = _i3.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_2( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_2( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); @override _i3.DiagnosticsNode describeWidget( @@ -206,48 +166,36 @@ class MockBuildContext extends _i1.Mock implements _i2.BuildContext { _i3.DiagnosticsTreeStyle? style = _i3.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_2( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_2( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); @override - List<_i3.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + List<_i3.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i3.DiagnosticsNode>[], - ) as List<_i3.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i3.DiagnosticsNode>[], + ) + as List<_i3.DiagnosticsNode>); @override _i3.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_2( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_2( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i3.DiagnosticsNode); } /// A class which mocks [PanGestureRecognizer]. @@ -260,124 +208,102 @@ class MockPanGestureRecognizer extends _i1.Mock } @override - String get debugDescription => (super.noSuchMethod( - Invocation.getter(#debugDescription), - returnValue: _i8.dummyValue( - this, - Invocation.getter(#debugDescription), - ), - ) as String); + String get debugDescription => + (super.noSuchMethod( + Invocation.getter(#debugDescription), + returnValue: _i8.dummyValue( + this, + Invocation.getter(#debugDescription), + ), + ) + as String); @override - _i5.DragStartBehavior get dragStartBehavior => (super.noSuchMethod( - Invocation.getter(#dragStartBehavior), - returnValue: _i5.DragStartBehavior.down, - ) as _i5.DragStartBehavior); + _i5.DragStartBehavior get dragStartBehavior => + (super.noSuchMethod( + Invocation.getter(#dragStartBehavior), + returnValue: _i5.DragStartBehavior.down, + ) + as _i5.DragStartBehavior); @override set dragStartBehavior(_i5.DragStartBehavior? _dragStartBehavior) => super.noSuchMethod( - Invocation.setter( - #dragStartBehavior, - _dragStartBehavior, - ), + Invocation.setter(#dragStartBehavior, _dragStartBehavior), returnValueForMissingStub: null, ); @override - _i5.MultitouchDragStrategy get multitouchDragStrategy => (super.noSuchMethod( - Invocation.getter(#multitouchDragStrategy), - returnValue: _i5.MultitouchDragStrategy.latestPointer, - ) as _i5.MultitouchDragStrategy); + _i5.MultitouchDragStrategy get multitouchDragStrategy => + (super.noSuchMethod( + Invocation.getter(#multitouchDragStrategy), + returnValue: _i5.MultitouchDragStrategy.latestPointer, + ) + as _i5.MultitouchDragStrategy); @override set multitouchDragStrategy( - _i5.MultitouchDragStrategy? _multitouchDragStrategy) => - super.noSuchMethod( - Invocation.setter( - #multitouchDragStrategy, - _multitouchDragStrategy, - ), - returnValueForMissingStub: null, - ); + _i5.MultitouchDragStrategy? _multitouchDragStrategy, + ) => super.noSuchMethod( + Invocation.setter(#multitouchDragStrategy, _multitouchDragStrategy), + returnValueForMissingStub: null, + ); @override set onDown(_i9.GestureDragDownCallback? _onDown) => super.noSuchMethod( - Invocation.setter( - #onDown, - _onDown, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#onDown, _onDown), + returnValueForMissingStub: null, + ); @override set onStart(_i9.GestureDragStartCallback? _onStart) => super.noSuchMethod( - Invocation.setter( - #onStart, - _onStart, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#onStart, _onStart), + returnValueForMissingStub: null, + ); @override set onUpdate(_i9.GestureDragUpdateCallback? _onUpdate) => super.noSuchMethod( - Invocation.setter( - #onUpdate, - _onUpdate, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#onUpdate, _onUpdate), + returnValueForMissingStub: null, + ); @override set onEnd(_i7.GestureDragEndCallback? _onEnd) => super.noSuchMethod( - Invocation.setter( - #onEnd, - _onEnd, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#onEnd, _onEnd), + returnValueForMissingStub: null, + ); @override set onCancel(_i7.GestureDragCancelCallback? _onCancel) => super.noSuchMethod( - Invocation.setter( - #onCancel, - _onCancel, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#onCancel, _onCancel), + returnValueForMissingStub: null, + ); @override set minFlingDistance(double? _minFlingDistance) => super.noSuchMethod( - Invocation.setter( - #minFlingDistance, - _minFlingDistance, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#minFlingDistance, _minFlingDistance), + returnValueForMissingStub: null, + ); @override set minFlingVelocity(double? _minFlingVelocity) => super.noSuchMethod( - Invocation.setter( - #minFlingVelocity, - _minFlingVelocity, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#minFlingVelocity, _minFlingVelocity), + returnValueForMissingStub: null, + ); @override set maxFlingVelocity(double? _maxFlingVelocity) => super.noSuchMethod( - Invocation.setter( - #maxFlingVelocity, - _maxFlingVelocity, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#maxFlingVelocity, _maxFlingVelocity), + returnValueForMissingStub: null, + ); @override - bool get onlyAcceptDragOnThreshold => (super.noSuchMethod( - Invocation.getter(#onlyAcceptDragOnThreshold), - returnValue: false, - ) as bool); + bool get onlyAcceptDragOnThreshold => + (super.noSuchMethod( + Invocation.getter(#onlyAcceptDragOnThreshold), + returnValue: false, + ) + as bool); @override set onlyAcceptDragOnThreshold(bool? _onlyAcceptDragOnThreshold) => @@ -392,73 +318,69 @@ class MockPanGestureRecognizer extends _i1.Mock @override _i7.GestureVelocityTrackerBuilder get velocityTrackerBuilder => (super.noSuchMethod( - Invocation.getter(#velocityTrackerBuilder), - returnValue: (_i10.PointerEvent event) => _FakeVelocityTracker_3( - this, - Invocation.getter(#velocityTrackerBuilder), - ), - ) as _i7.GestureVelocityTrackerBuilder); + Invocation.getter(#velocityTrackerBuilder), + returnValue: + (_i10.PointerEvent event) => _FakeVelocityTracker_3( + this, + Invocation.getter(#velocityTrackerBuilder), + ), + ) + as _i7.GestureVelocityTrackerBuilder); @override set velocityTrackerBuilder( - _i7.GestureVelocityTrackerBuilder? _velocityTrackerBuilder) => - super.noSuchMethod( - Invocation.setter( - #velocityTrackerBuilder, - _velocityTrackerBuilder, - ), - returnValueForMissingStub: null, - ); + _i7.GestureVelocityTrackerBuilder? _velocityTrackerBuilder, + ) => super.noSuchMethod( + Invocation.setter(#velocityTrackerBuilder, _velocityTrackerBuilder), + returnValueForMissingStub: null, + ); @override - _i5.OffsetPair get lastPosition => (super.noSuchMethod( - Invocation.getter(#lastPosition), - returnValue: _FakeOffsetPair_4( - this, - Invocation.getter(#lastPosition), - ), - ) as _i5.OffsetPair); + _i5.OffsetPair get lastPosition => + (super.noSuchMethod( + Invocation.getter(#lastPosition), + returnValue: _FakeOffsetPair_4( + this, + Invocation.getter(#lastPosition), + ), + ) + as _i5.OffsetPair); @override - double get globalDistanceMoved => (super.noSuchMethod( - Invocation.getter(#globalDistanceMoved), - returnValue: 0.0, - ) as double); + double get globalDistanceMoved => + (super.noSuchMethod( + Invocation.getter(#globalDistanceMoved), + returnValue: 0.0, + ) + as double); @override set team(_i5.GestureArenaTeam? value) => super.noSuchMethod( - Invocation.setter( - #team, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#team, value), + returnValueForMissingStub: null, + ); @override set gestureSettings(_i11.DeviceGestureSettings? _gestureSettings) => super.noSuchMethod( - Invocation.setter( - #gestureSettings, - _gestureSettings, - ), + Invocation.setter(#gestureSettings, _gestureSettings), returnValueForMissingStub: null, ); @override set supportedDevices(Set<_i12.PointerDeviceKind>? _supportedDevices) => super.noSuchMethod( - Invocation.setter( - #supportedDevices, - _supportedDevices, - ), + Invocation.setter(#supportedDevices, _supportedDevices), returnValueForMissingStub: null, ); @override - _i5.AllowedButtonsFilter get allowedButtonsFilter => (super.noSuchMethod( - Invocation.getter(#allowedButtonsFilter), - returnValue: (int buttons) => false, - ) as _i5.AllowedButtonsFilter); + _i5.AllowedButtonsFilter get allowedButtonsFilter => + (super.noSuchMethod( + Invocation.getter(#allowedButtonsFilter), + returnValue: (int buttons) => false, + ) + as _i5.AllowedButtonsFilter); @override bool isFlingGesture( @@ -466,28 +388,18 @@ class MockPanGestureRecognizer extends _i1.Mock _i12.PointerDeviceKind? kind, ) => (super.noSuchMethod( - Invocation.method( - #isFlingGesture, - [ - estimate, - kind, - ], - ), - returnValue: false, - ) as bool); + Invocation.method(#isFlingGesture, [estimate, kind]), + returnValue: false, + ) + as bool); @override _i9.DragEndDetails? considerFling( _i4.VelocityEstimate? estimate, _i12.PointerDeviceKind? kind, ) => - (super.noSuchMethod(Invocation.method( - #considerFling, - [ - estimate, - kind, - ], - )) as _i9.DragEndDetails?); + (super.noSuchMethod(Invocation.method(#considerFling, [estimate, kind])) + as _i9.DragEndDetails?); @override bool hasSufficientGlobalDistanceToAccept( @@ -495,216 +407,147 @@ class MockPanGestureRecognizer extends _i1.Mock double? deviceTouchSlop, ) => (super.noSuchMethod( - Invocation.method( - #hasSufficientGlobalDistanceToAccept, - [ - pointerDeviceKind, - deviceTouchSlop, - ], - ), - returnValue: false, - ) as bool); + Invocation.method(#hasSufficientGlobalDistanceToAccept, [ + pointerDeviceKind, + deviceTouchSlop, + ]), + returnValue: false, + ) + as bool); @override - bool isPointerAllowed(_i10.PointerEvent? event) => (super.noSuchMethod( - Invocation.method( - #isPointerAllowed, - [event], - ), - returnValue: false, - ) as bool); + bool isPointerAllowed(_i10.PointerEvent? event) => + (super.noSuchMethod( + Invocation.method(#isPointerAllowed, [event]), + returnValue: false, + ) + as bool); @override void addAllowedPointer(_i10.PointerDownEvent? event) => super.noSuchMethod( - Invocation.method( - #addAllowedPointer, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addAllowedPointer, [event]), + returnValueForMissingStub: null, + ); @override void addAllowedPointerPanZoom(_i11.PointerPanZoomStartEvent? event) => super.noSuchMethod( - Invocation.method( - #addAllowedPointerPanZoom, - [event], - ), + Invocation.method(#addAllowedPointerPanZoom, [event]), returnValueForMissingStub: null, ); @override void handleEvent(_i10.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #handleEvent, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleEvent, [event]), + returnValueForMissingStub: null, + ); @override void acceptGesture(int? pointer) => super.noSuchMethod( - Invocation.method( - #acceptGesture, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#acceptGesture, [pointer]), + returnValueForMissingStub: null, + ); @override void rejectGesture(int? pointer) => super.noSuchMethod( - Invocation.method( - #rejectGesture, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rejectGesture, [pointer]), + returnValueForMissingStub: null, + ); @override void didStopTrackingLastPointer(int? pointer) => super.noSuchMethod( - Invocation.method( - #didStopTrackingLastPointer, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#didStopTrackingLastPointer, [pointer]), + returnValueForMissingStub: null, + ); @override void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); @override void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) => super.noSuchMethod( - Invocation.method( - #debugFillProperties, - [properties], - ), + Invocation.method(#debugFillProperties, [properties]), returnValueForMissingStub: null, ); @override void handleNonAllowedPointer(_i10.PointerDownEvent? event) => super.noSuchMethod( - Invocation.method( - #handleNonAllowedPointer, - [event], - ), + Invocation.method(#handleNonAllowedPointer, [event]), returnValueForMissingStub: null, ); @override void resolve(_i5.GestureDisposition? disposition) => super.noSuchMethod( - Invocation.method( - #resolve, - [disposition], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resolve, [disposition]), + returnValueForMissingStub: null, + ); @override - void resolvePointer( - int? pointer, - _i5.GestureDisposition? disposition, - ) => + void resolvePointer(int? pointer, _i5.GestureDisposition? disposition) => super.noSuchMethod( - Invocation.method( - #resolvePointer, - [ - pointer, - disposition, - ], - ), + Invocation.method(#resolvePointer, [pointer, disposition]), returnValueForMissingStub: null, ); @override - void startTrackingPointer( - int? pointer, [ - _i10.Matrix4? transform, - ]) => + void startTrackingPointer(int? pointer, [_i10.Matrix4? transform]) => super.noSuchMethod( - Invocation.method( - #startTrackingPointer, - [ - pointer, - transform, - ], - ), + Invocation.method(#startTrackingPointer, [pointer, transform]), returnValueForMissingStub: null, ); @override void stopTrackingPointer(int? pointer) => super.noSuchMethod( - Invocation.method( - #stopTrackingPointer, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#stopTrackingPointer, [pointer]), + returnValueForMissingStub: null, + ); @override void stopTrackingIfPointerNoLongerDown(_i10.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #stopTrackingIfPointerNoLongerDown, - [event], - ), + Invocation.method(#stopTrackingIfPointerNoLongerDown, [event]), returnValueForMissingStub: null, ); @override void addPointerPanZoom(_i11.PointerPanZoomStartEvent? event) => super.noSuchMethod( - Invocation.method( - #addPointerPanZoom, - [event], - ), + Invocation.method(#addPointerPanZoom, [event]), returnValueForMissingStub: null, ); @override void addPointer(_i10.PointerDownEvent? event) => super.noSuchMethod( - Invocation.method( - #addPointer, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addPointer, [event]), + returnValueForMissingStub: null, + ); @override void handleNonAllowedPointerPanZoom(_i11.PointerPanZoomStartEvent? event) => super.noSuchMethod( - Invocation.method( - #handleNonAllowedPointerPanZoom, - [event], - ), + Invocation.method(#handleNonAllowedPointerPanZoom, [event]), returnValueForMissingStub: null, ); @override bool isPointerPanZoomAllowed(_i11.PointerPanZoomStartEvent? event) => (super.noSuchMethod( - Invocation.method( - #isPointerPanZoomAllowed, - [event], - ), - returnValue: false, - ) as bool); + Invocation.method(#isPointerPanZoomAllowed, [event]), + returnValue: false, + ) + as bool); @override - _i12.PointerDeviceKind getKindForPointer(int? pointer) => (super.noSuchMethod( - Invocation.method( - #getKindForPointer, - [pointer], - ), - returnValue: _i12.PointerDeviceKind.touch, - ) as _i12.PointerDeviceKind); + _i12.PointerDeviceKind getKindForPointer(int? pointer) => + (super.noSuchMethod( + Invocation.method(#getKindForPointer, [pointer]), + returnValue: _i12.PointerDeviceKind.touch, + ) + as _i12.PointerDeviceKind); @override T? invokeCallback( @@ -712,14 +555,14 @@ class MockPanGestureRecognizer extends _i1.Mock _i5.RecognizerCallback? callback, { String Function()? debugReport, }) => - (super.noSuchMethod(Invocation.method( - #invokeCallback, - [ - name, - callback, - ], - {#debugReport: debugReport}, - )) as T?); + (super.noSuchMethod( + Invocation.method( + #invokeCallback, + [name, callback], + {#debugReport: debugReport}, + ), + ) + as T?); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -727,78 +570,60 @@ class MockPanGestureRecognizer extends _i1.Mock @override String toStringShallow({ - String? joiner = r', ', + String? joiner = ', ', _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.debug, }) => (super.noSuchMethod( - Invocation.method( - #toStringShallow, - [], - { - #joiner: joiner, - #minLevel: minLevel, - }, - ), - returnValue: _i8.dummyValue( - this, - Invocation.method( - #toStringShallow, - [], - { + Invocation.method(#toStringShallow, [], { #joiner: joiner, #minLevel: minLevel, - }, - ), - ), - ) as String); + }), + returnValue: _i8.dummyValue( + this, + Invocation.method(#toStringShallow, [], { + #joiner: joiner, + #minLevel: minLevel, + }), + ), + ) + as String); @override String toStringDeep({ - String? prefixLineOne = r'', + String? prefixLineOne = '', String? prefixOtherLines, _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.debug, int? wrapWidth = 65, }) => (super.noSuchMethod( - Invocation.method( - #toStringDeep, - [], - { - #prefixLineOne: prefixLineOne, - #prefixOtherLines: prefixOtherLines, - #minLevel: minLevel, - #wrapWidth: wrapWidth, - }, - ), - returnValue: _i8.dummyValue( - this, - Invocation.method( - #toStringDeep, - [], - { + Invocation.method(#toStringDeep, [], { #prefixLineOne: prefixLineOne, #prefixOtherLines: prefixOtherLines, #minLevel: minLevel, #wrapWidth: wrapWidth, - }, - ), - ), - ) as String); - - @override - String toStringShort() => (super.noSuchMethod( - Invocation.method( - #toStringShort, - [], - ), - returnValue: _i8.dummyValue( - this, - Invocation.method( - #toStringShort, - [], - ), - ), - ) as String); + }), + returnValue: _i8.dummyValue( + this, + Invocation.method(#toStringDeep, [], { + #prefixLineOne: prefixLineOne, + #prefixOtherLines: prefixOtherLines, + #minLevel: minLevel, + #wrapWidth: wrapWidth, + }), + ), + ) + as String); + + @override + String toStringShort() => + (super.noSuchMethod( + Invocation.method(#toStringShort, []), + returnValue: _i8.dummyValue( + this, + Invocation.method(#toStringShort, []), + ), + ) + as String); @override _i3.DiagnosticsNode toDiagnosticsNode({ @@ -806,35 +631,27 @@ class MockPanGestureRecognizer extends _i1.Mock _i3.DiagnosticsTreeStyle? style, }) => (super.noSuchMethod( - Invocation.method( - #toDiagnosticsNode, - [], - { - #name: name, - #style: style, - }, - ), - returnValue: _FakeDiagnosticsNode_2( - this, - Invocation.method( - #toDiagnosticsNode, - [], - { + Invocation.method(#toDiagnosticsNode, [], { #name: name, #style: style, - }, - ), - ), - ) as _i3.DiagnosticsNode); - - @override - List<_i3.DiagnosticsNode> debugDescribeChildren() => (super.noSuchMethod( - Invocation.method( - #debugDescribeChildren, - [], - ), - returnValue: <_i3.DiagnosticsNode>[], - ) as List<_i3.DiagnosticsNode>); + }), + returnValue: _FakeDiagnosticsNode_2( + this, + Invocation.method(#toDiagnosticsNode, [], { + #name: name, + #style: style, + }), + ), + ) + as _i3.DiagnosticsNode); + + @override + List<_i3.DiagnosticsNode> debugDescribeChildren() => + (super.noSuchMethod( + Invocation.method(#debugDescribeChildren, []), + returnValue: <_i3.DiagnosticsNode>[], + ) + as List<_i3.DiagnosticsNode>); } /// A class which mocks [TapGestureRecognizer]. @@ -848,180 +665,139 @@ class MockTapGestureRecognizer extends _i1.Mock @override set onTapDown(_i13.GestureTapDownCallback? _onTapDown) => super.noSuchMethod( - Invocation.setter( - #onTapDown, - _onTapDown, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#onTapDown, _onTapDown), + returnValueForMissingStub: null, + ); @override set onTapUp(_i13.GestureTapUpCallback? _onTapUp) => super.noSuchMethod( - Invocation.setter( - #onTapUp, - _onTapUp, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#onTapUp, _onTapUp), + returnValueForMissingStub: null, + ); @override set onTap(_i13.GestureTapCallback? _onTap) => super.noSuchMethod( - Invocation.setter( - #onTap, - _onTap, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#onTap, _onTap), + returnValueForMissingStub: null, + ); @override set onTapCancel(_i13.GestureTapCancelCallback? _onTapCancel) => super.noSuchMethod( - Invocation.setter( - #onTapCancel, - _onTapCancel, - ), + Invocation.setter(#onTapCancel, _onTapCancel), returnValueForMissingStub: null, ); @override set onSecondaryTap(_i13.GestureTapCallback? _onSecondaryTap) => super.noSuchMethod( - Invocation.setter( - #onSecondaryTap, - _onSecondaryTap, - ), + Invocation.setter(#onSecondaryTap, _onSecondaryTap), returnValueForMissingStub: null, ); @override set onSecondaryTapDown(_i13.GestureTapDownCallback? _onSecondaryTapDown) => super.noSuchMethod( - Invocation.setter( - #onSecondaryTapDown, - _onSecondaryTapDown, - ), + Invocation.setter(#onSecondaryTapDown, _onSecondaryTapDown), returnValueForMissingStub: null, ); @override set onSecondaryTapUp(_i13.GestureTapUpCallback? _onSecondaryTapUp) => super.noSuchMethod( - Invocation.setter( - #onSecondaryTapUp, - _onSecondaryTapUp, - ), + Invocation.setter(#onSecondaryTapUp, _onSecondaryTapUp), returnValueForMissingStub: null, ); @override set onSecondaryTapCancel( - _i13.GestureTapCancelCallback? _onSecondaryTapCancel) => - super.noSuchMethod( - Invocation.setter( - #onSecondaryTapCancel, - _onSecondaryTapCancel, - ), - returnValueForMissingStub: null, - ); + _i13.GestureTapCancelCallback? _onSecondaryTapCancel, + ) => super.noSuchMethod( + Invocation.setter(#onSecondaryTapCancel, _onSecondaryTapCancel), + returnValueForMissingStub: null, + ); @override set onTertiaryTapDown(_i13.GestureTapDownCallback? _onTertiaryTapDown) => super.noSuchMethod( - Invocation.setter( - #onTertiaryTapDown, - _onTertiaryTapDown, - ), + Invocation.setter(#onTertiaryTapDown, _onTertiaryTapDown), returnValueForMissingStub: null, ); @override set onTertiaryTapUp(_i13.GestureTapUpCallback? _onTertiaryTapUp) => super.noSuchMethod( - Invocation.setter( - #onTertiaryTapUp, - _onTertiaryTapUp, - ), + Invocation.setter(#onTertiaryTapUp, _onTertiaryTapUp), returnValueForMissingStub: null, ); @override set onTertiaryTapCancel( - _i13.GestureTapCancelCallback? _onTertiaryTapCancel) => - super.noSuchMethod( - Invocation.setter( - #onTertiaryTapCancel, - _onTertiaryTapCancel, - ), - returnValueForMissingStub: null, - ); + _i13.GestureTapCancelCallback? _onTertiaryTapCancel, + ) => super.noSuchMethod( + Invocation.setter(#onTertiaryTapCancel, _onTertiaryTapCancel), + returnValueForMissingStub: null, + ); @override - String get debugDescription => (super.noSuchMethod( - Invocation.getter(#debugDescription), - returnValue: _i8.dummyValue( - this, - Invocation.getter(#debugDescription), - ), - ) as String); + String get debugDescription => + (super.noSuchMethod( + Invocation.getter(#debugDescription), + returnValue: _i8.dummyValue( + this, + Invocation.getter(#debugDescription), + ), + ) + as String); @override - _i5.GestureRecognizerState get state => (super.noSuchMethod( - Invocation.getter(#state), - returnValue: _i5.GestureRecognizerState.ready, - ) as _i5.GestureRecognizerState); + _i5.GestureRecognizerState get state => + (super.noSuchMethod( + Invocation.getter(#state), + returnValue: _i5.GestureRecognizerState.ready, + ) + as _i5.GestureRecognizerState); @override set team(_i5.GestureArenaTeam? value) => super.noSuchMethod( - Invocation.setter( - #team, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#team, value), + returnValueForMissingStub: null, + ); @override set gestureSettings(_i11.DeviceGestureSettings? _gestureSettings) => super.noSuchMethod( - Invocation.setter( - #gestureSettings, - _gestureSettings, - ), + Invocation.setter(#gestureSettings, _gestureSettings), returnValueForMissingStub: null, ); @override set supportedDevices(Set<_i12.PointerDeviceKind>? _supportedDevices) => super.noSuchMethod( - Invocation.setter( - #supportedDevices, - _supportedDevices, - ), + Invocation.setter(#supportedDevices, _supportedDevices), returnValueForMissingStub: null, ); @override - _i5.AllowedButtonsFilter get allowedButtonsFilter => (super.noSuchMethod( - Invocation.getter(#allowedButtonsFilter), - returnValue: (int buttons) => false, - ) as _i5.AllowedButtonsFilter); + _i5.AllowedButtonsFilter get allowedButtonsFilter => + (super.noSuchMethod( + Invocation.getter(#allowedButtonsFilter), + returnValue: (int buttons) => false, + ) + as _i5.AllowedButtonsFilter); @override - bool isPointerAllowed(_i10.PointerDownEvent? event) => (super.noSuchMethod( - Invocation.method( - #isPointerAllowed, - [event], - ), - returnValue: false, - ) as bool); + bool isPointerAllowed(_i10.PointerDownEvent? event) => + (super.noSuchMethod( + Invocation.method(#isPointerAllowed, [event]), + returnValue: false, + ) + as bool); @override void handleTapDown({required _i10.PointerDownEvent? down}) => super.noSuchMethod( - Invocation.method( - #handleTapDown, - [], - {#down: down}, - ), + Invocation.method(#handleTapDown, [], {#down: down}), returnValueForMissingStub: null, ); @@ -1029,257 +805,169 @@ class MockTapGestureRecognizer extends _i1.Mock void handleTapUp({ required _i10.PointerDownEvent? down, required _i10.PointerUpEvent? up, - }) => - super.noSuchMethod( - Invocation.method( - #handleTapUp, - [], - { - #down: down, - #up: up, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#handleTapUp, [], {#down: down, #up: up}), + returnValueForMissingStub: null, + ); @override void handleTapCancel({ required _i10.PointerDownEvent? down, _i10.PointerCancelEvent? cancel, required String? reason, - }) => - super.noSuchMethod( - Invocation.method( - #handleTapCancel, - [], - { - #down: down, - #cancel: cancel, - #reason: reason, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#handleTapCancel, [], { + #down: down, + #cancel: cancel, + #reason: reason, + }), + returnValueForMissingStub: null, + ); @override void addAllowedPointer(_i10.PointerDownEvent? event) => super.noSuchMethod( - Invocation.method( - #addAllowedPointer, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addAllowedPointer, [event]), + returnValueForMissingStub: null, + ); @override - void startTrackingPointer( - int? pointer, [ - _i10.Matrix4? transform, - ]) => + void startTrackingPointer(int? pointer, [_i10.Matrix4? transform]) => super.noSuchMethod( - Invocation.method( - #startTrackingPointer, - [ - pointer, - transform, - ], - ), + Invocation.method(#startTrackingPointer, [pointer, transform]), returnValueForMissingStub: null, ); @override void handlePrimaryPointer(_i10.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #handlePrimaryPointer, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handlePrimaryPointer, [event]), + returnValueForMissingStub: null, + ); @override void resolve(_i5.GestureDisposition? disposition) => super.noSuchMethod( - Invocation.method( - #resolve, - [disposition], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resolve, [disposition]), + returnValueForMissingStub: null, + ); @override void didExceedDeadline() => super.noSuchMethod( - Invocation.method( - #didExceedDeadline, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#didExceedDeadline, []), + returnValueForMissingStub: null, + ); @override void acceptGesture(int? pointer) => super.noSuchMethod( - Invocation.method( - #acceptGesture, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#acceptGesture, [pointer]), + returnValueForMissingStub: null, + ); @override void rejectGesture(int? pointer) => super.noSuchMethod( - Invocation.method( - #rejectGesture, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rejectGesture, [pointer]), + returnValueForMissingStub: null, + ); @override void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) => super.noSuchMethod( - Invocation.method( - #debugFillProperties, - [properties], - ), + Invocation.method(#debugFillProperties, [properties]), returnValueForMissingStub: null, ); @override void handleNonAllowedPointer(_i10.PointerDownEvent? event) => super.noSuchMethod( - Invocation.method( - #handleNonAllowedPointer, - [event], - ), + Invocation.method(#handleNonAllowedPointer, [event]), returnValueForMissingStub: null, ); @override void handleEvent(_i10.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #handleEvent, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleEvent, [event]), + returnValueForMissingStub: null, + ); @override void didExceedDeadlineWithEvent(_i10.PointerDownEvent? event) => super.noSuchMethod( - Invocation.method( - #didExceedDeadlineWithEvent, - [event], - ), + Invocation.method(#didExceedDeadlineWithEvent, [event]), returnValueForMissingStub: null, ); @override void didStopTrackingLastPointer(int? pointer) => super.noSuchMethod( - Invocation.method( - #didStopTrackingLastPointer, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#didStopTrackingLastPointer, [pointer]), + returnValueForMissingStub: null, + ); @override void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); @override - void resolvePointer( - int? pointer, - _i5.GestureDisposition? disposition, - ) => + void resolvePointer(int? pointer, _i5.GestureDisposition? disposition) => super.noSuchMethod( - Invocation.method( - #resolvePointer, - [ - pointer, - disposition, - ], - ), + Invocation.method(#resolvePointer, [pointer, disposition]), returnValueForMissingStub: null, ); @override void stopTrackingPointer(int? pointer) => super.noSuchMethod( - Invocation.method( - #stopTrackingPointer, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#stopTrackingPointer, [pointer]), + returnValueForMissingStub: null, + ); @override void stopTrackingIfPointerNoLongerDown(_i10.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #stopTrackingIfPointerNoLongerDown, - [event], - ), + Invocation.method(#stopTrackingIfPointerNoLongerDown, [event]), returnValueForMissingStub: null, ); @override void addPointerPanZoom(_i11.PointerPanZoomStartEvent? event) => super.noSuchMethod( - Invocation.method( - #addPointerPanZoom, - [event], - ), + Invocation.method(#addPointerPanZoom, [event]), returnValueForMissingStub: null, ); @override void addAllowedPointerPanZoom(_i11.PointerPanZoomStartEvent? event) => super.noSuchMethod( - Invocation.method( - #addAllowedPointerPanZoom, - [event], - ), + Invocation.method(#addAllowedPointerPanZoom, [event]), returnValueForMissingStub: null, ); @override void addPointer(_i10.PointerDownEvent? event) => super.noSuchMethod( - Invocation.method( - #addPointer, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addPointer, [event]), + returnValueForMissingStub: null, + ); @override void handleNonAllowedPointerPanZoom(_i11.PointerPanZoomStartEvent? event) => super.noSuchMethod( - Invocation.method( - #handleNonAllowedPointerPanZoom, - [event], - ), + Invocation.method(#handleNonAllowedPointerPanZoom, [event]), returnValueForMissingStub: null, ); @override bool isPointerPanZoomAllowed(_i11.PointerPanZoomStartEvent? event) => (super.noSuchMethod( - Invocation.method( - #isPointerPanZoomAllowed, - [event], - ), - returnValue: false, - ) as bool); + Invocation.method(#isPointerPanZoomAllowed, [event]), + returnValue: false, + ) + as bool); @override - _i12.PointerDeviceKind getKindForPointer(int? pointer) => (super.noSuchMethod( - Invocation.method( - #getKindForPointer, - [pointer], - ), - returnValue: _i12.PointerDeviceKind.touch, - ) as _i12.PointerDeviceKind); + _i12.PointerDeviceKind getKindForPointer(int? pointer) => + (super.noSuchMethod( + Invocation.method(#getKindForPointer, [pointer]), + returnValue: _i12.PointerDeviceKind.touch, + ) + as _i12.PointerDeviceKind); @override T? invokeCallback( @@ -1287,14 +975,14 @@ class MockTapGestureRecognizer extends _i1.Mock _i5.RecognizerCallback? callback, { String Function()? debugReport, }) => - (super.noSuchMethod(Invocation.method( - #invokeCallback, - [ - name, - callback, - ], - {#debugReport: debugReport}, - )) as T?); + (super.noSuchMethod( + Invocation.method( + #invokeCallback, + [name, callback], + {#debugReport: debugReport}, + ), + ) + as T?); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -1302,78 +990,60 @@ class MockTapGestureRecognizer extends _i1.Mock @override String toStringShallow({ - String? joiner = r', ', + String? joiner = ', ', _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.debug, }) => (super.noSuchMethod( - Invocation.method( - #toStringShallow, - [], - { - #joiner: joiner, - #minLevel: minLevel, - }, - ), - returnValue: _i8.dummyValue( - this, - Invocation.method( - #toStringShallow, - [], - { + Invocation.method(#toStringShallow, [], { #joiner: joiner, #minLevel: minLevel, - }, - ), - ), - ) as String); + }), + returnValue: _i8.dummyValue( + this, + Invocation.method(#toStringShallow, [], { + #joiner: joiner, + #minLevel: minLevel, + }), + ), + ) + as String); @override String toStringDeep({ - String? prefixLineOne = r'', + String? prefixLineOne = '', String? prefixOtherLines, _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.debug, int? wrapWidth = 65, }) => (super.noSuchMethod( - Invocation.method( - #toStringDeep, - [], - { - #prefixLineOne: prefixLineOne, - #prefixOtherLines: prefixOtherLines, - #minLevel: minLevel, - #wrapWidth: wrapWidth, - }, - ), - returnValue: _i8.dummyValue( - this, - Invocation.method( - #toStringDeep, - [], - { + Invocation.method(#toStringDeep, [], { #prefixLineOne: prefixLineOne, #prefixOtherLines: prefixOtherLines, #minLevel: minLevel, #wrapWidth: wrapWidth, - }, - ), - ), - ) as String); - - @override - String toStringShort() => (super.noSuchMethod( - Invocation.method( - #toStringShort, - [], - ), - returnValue: _i8.dummyValue( - this, - Invocation.method( - #toStringShort, - [], - ), - ), - ) as String); + }), + returnValue: _i8.dummyValue( + this, + Invocation.method(#toStringDeep, [], { + #prefixLineOne: prefixLineOne, + #prefixOtherLines: prefixOtherLines, + #minLevel: minLevel, + #wrapWidth: wrapWidth, + }), + ), + ) + as String); + + @override + String toStringShort() => + (super.noSuchMethod( + Invocation.method(#toStringShort, []), + returnValue: _i8.dummyValue( + this, + Invocation.method(#toStringShort, []), + ), + ) + as String); @override _i3.DiagnosticsNode toDiagnosticsNode({ @@ -1381,35 +1051,27 @@ class MockTapGestureRecognizer extends _i1.Mock _i3.DiagnosticsTreeStyle? style, }) => (super.noSuchMethod( - Invocation.method( - #toDiagnosticsNode, - [], - { - #name: name, - #style: style, - }, - ), - returnValue: _FakeDiagnosticsNode_2( - this, - Invocation.method( - #toDiagnosticsNode, - [], - { + Invocation.method(#toDiagnosticsNode, [], { #name: name, #style: style, - }, - ), - ), - ) as _i3.DiagnosticsNode); - - @override - List<_i3.DiagnosticsNode> debugDescribeChildren() => (super.noSuchMethod( - Invocation.method( - #debugDescribeChildren, - [], - ), - returnValue: <_i3.DiagnosticsNode>[], - ) as List<_i3.DiagnosticsNode>); + }), + returnValue: _FakeDiagnosticsNode_2( + this, + Invocation.method(#toDiagnosticsNode, [], { + #name: name, + #style: style, + }), + ), + ) + as _i3.DiagnosticsNode); + + @override + List<_i3.DiagnosticsNode> debugDescribeChildren() => + (super.noSuchMethod( + Invocation.method(#debugDescribeChildren, []), + returnValue: <_i3.DiagnosticsNode>[], + ) + as List<_i3.DiagnosticsNode>); } /// A class which mocks [LongPressGestureRecognizer]. @@ -1424,509 +1086,371 @@ class MockLongPressGestureRecognizer extends _i1.Mock @override set onLongPressDown(_i14.GestureLongPressDownCallback? _onLongPressDown) => super.noSuchMethod( - Invocation.setter( - #onLongPressDown, - _onLongPressDown, - ), + Invocation.setter(#onLongPressDown, _onLongPressDown), returnValueForMissingStub: null, ); @override set onLongPressCancel( - _i14.GestureLongPressCancelCallback? _onLongPressCancel) => - super.noSuchMethod( - Invocation.setter( - #onLongPressCancel, - _onLongPressCancel, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressCancelCallback? _onLongPressCancel, + ) => super.noSuchMethod( + Invocation.setter(#onLongPressCancel, _onLongPressCancel), + returnValueForMissingStub: null, + ); @override set onLongPress(_i14.GestureLongPressCallback? _onLongPress) => super.noSuchMethod( - Invocation.setter( - #onLongPress, - _onLongPress, - ), + Invocation.setter(#onLongPress, _onLongPress), returnValueForMissingStub: null, ); @override set onLongPressStart(_i14.GestureLongPressStartCallback? _onLongPressStart) => super.noSuchMethod( - Invocation.setter( - #onLongPressStart, - _onLongPressStart, - ), + Invocation.setter(#onLongPressStart, _onLongPressStart), returnValueForMissingStub: null, ); @override set onLongPressMoveUpdate( - _i14.GestureLongPressMoveUpdateCallback? _onLongPressMoveUpdate) => - super.noSuchMethod( - Invocation.setter( - #onLongPressMoveUpdate, - _onLongPressMoveUpdate, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressMoveUpdateCallback? _onLongPressMoveUpdate, + ) => super.noSuchMethod( + Invocation.setter(#onLongPressMoveUpdate, _onLongPressMoveUpdate), + returnValueForMissingStub: null, + ); @override set onLongPressUp(_i14.GestureLongPressUpCallback? _onLongPressUp) => super.noSuchMethod( - Invocation.setter( - #onLongPressUp, - _onLongPressUp, - ), + Invocation.setter(#onLongPressUp, _onLongPressUp), returnValueForMissingStub: null, ); @override set onLongPressEnd(_i14.GestureLongPressEndCallback? _onLongPressEnd) => super.noSuchMethod( - Invocation.setter( - #onLongPressEnd, - _onLongPressEnd, - ), + Invocation.setter(#onLongPressEnd, _onLongPressEnd), returnValueForMissingStub: null, ); @override set onSecondaryLongPressDown( - _i14.GestureLongPressDownCallback? _onSecondaryLongPressDown) => - super.noSuchMethod( - Invocation.setter( - #onSecondaryLongPressDown, - _onSecondaryLongPressDown, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressDownCallback? _onSecondaryLongPressDown, + ) => super.noSuchMethod( + Invocation.setter(#onSecondaryLongPressDown, _onSecondaryLongPressDown), + returnValueForMissingStub: null, + ); @override set onSecondaryLongPressCancel( - _i14.GestureLongPressCancelCallback? _onSecondaryLongPressCancel) => - super.noSuchMethod( - Invocation.setter( - #onSecondaryLongPressCancel, - _onSecondaryLongPressCancel, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressCancelCallback? _onSecondaryLongPressCancel, + ) => super.noSuchMethod( + Invocation.setter(#onSecondaryLongPressCancel, _onSecondaryLongPressCancel), + returnValueForMissingStub: null, + ); @override set onSecondaryLongPress( - _i14.GestureLongPressCallback? _onSecondaryLongPress) => - super.noSuchMethod( - Invocation.setter( - #onSecondaryLongPress, - _onSecondaryLongPress, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressCallback? _onSecondaryLongPress, + ) => super.noSuchMethod( + Invocation.setter(#onSecondaryLongPress, _onSecondaryLongPress), + returnValueForMissingStub: null, + ); @override set onSecondaryLongPressStart( - _i14.GestureLongPressStartCallback? _onSecondaryLongPressStart) => - super.noSuchMethod( - Invocation.setter( - #onSecondaryLongPressStart, - _onSecondaryLongPressStart, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressStartCallback? _onSecondaryLongPressStart, + ) => super.noSuchMethod( + Invocation.setter(#onSecondaryLongPressStart, _onSecondaryLongPressStart), + returnValueForMissingStub: null, + ); @override set onSecondaryLongPressMoveUpdate( - _i14.GestureLongPressMoveUpdateCallback? - _onSecondaryLongPressMoveUpdate) => - super.noSuchMethod( - Invocation.setter( - #onSecondaryLongPressMoveUpdate, - _onSecondaryLongPressMoveUpdate, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressMoveUpdateCallback? _onSecondaryLongPressMoveUpdate, + ) => super.noSuchMethod( + Invocation.setter( + #onSecondaryLongPressMoveUpdate, + _onSecondaryLongPressMoveUpdate, + ), + returnValueForMissingStub: null, + ); @override set onSecondaryLongPressUp( - _i14.GestureLongPressUpCallback? _onSecondaryLongPressUp) => - super.noSuchMethod( - Invocation.setter( - #onSecondaryLongPressUp, - _onSecondaryLongPressUp, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressUpCallback? _onSecondaryLongPressUp, + ) => super.noSuchMethod( + Invocation.setter(#onSecondaryLongPressUp, _onSecondaryLongPressUp), + returnValueForMissingStub: null, + ); @override set onSecondaryLongPressEnd( - _i14.GestureLongPressEndCallback? _onSecondaryLongPressEnd) => - super.noSuchMethod( - Invocation.setter( - #onSecondaryLongPressEnd, - _onSecondaryLongPressEnd, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressEndCallback? _onSecondaryLongPressEnd, + ) => super.noSuchMethod( + Invocation.setter(#onSecondaryLongPressEnd, _onSecondaryLongPressEnd), + returnValueForMissingStub: null, + ); @override set onTertiaryLongPressDown( - _i14.GestureLongPressDownCallback? _onTertiaryLongPressDown) => - super.noSuchMethod( - Invocation.setter( - #onTertiaryLongPressDown, - _onTertiaryLongPressDown, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressDownCallback? _onTertiaryLongPressDown, + ) => super.noSuchMethod( + Invocation.setter(#onTertiaryLongPressDown, _onTertiaryLongPressDown), + returnValueForMissingStub: null, + ); @override set onTertiaryLongPressCancel( - _i14.GestureLongPressCancelCallback? _onTertiaryLongPressCancel) => - super.noSuchMethod( - Invocation.setter( - #onTertiaryLongPressCancel, - _onTertiaryLongPressCancel, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressCancelCallback? _onTertiaryLongPressCancel, + ) => super.noSuchMethod( + Invocation.setter(#onTertiaryLongPressCancel, _onTertiaryLongPressCancel), + returnValueForMissingStub: null, + ); @override set onTertiaryLongPress( - _i14.GestureLongPressCallback? _onTertiaryLongPress) => - super.noSuchMethod( - Invocation.setter( - #onTertiaryLongPress, - _onTertiaryLongPress, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressCallback? _onTertiaryLongPress, + ) => super.noSuchMethod( + Invocation.setter(#onTertiaryLongPress, _onTertiaryLongPress), + returnValueForMissingStub: null, + ); @override set onTertiaryLongPressStart( - _i14.GestureLongPressStartCallback? _onTertiaryLongPressStart) => - super.noSuchMethod( - Invocation.setter( - #onTertiaryLongPressStart, - _onTertiaryLongPressStart, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressStartCallback? _onTertiaryLongPressStart, + ) => super.noSuchMethod( + Invocation.setter(#onTertiaryLongPressStart, _onTertiaryLongPressStart), + returnValueForMissingStub: null, + ); @override set onTertiaryLongPressMoveUpdate( - _i14.GestureLongPressMoveUpdateCallback? - _onTertiaryLongPressMoveUpdate) => - super.noSuchMethod( - Invocation.setter( - #onTertiaryLongPressMoveUpdate, - _onTertiaryLongPressMoveUpdate, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressMoveUpdateCallback? _onTertiaryLongPressMoveUpdate, + ) => super.noSuchMethod( + Invocation.setter( + #onTertiaryLongPressMoveUpdate, + _onTertiaryLongPressMoveUpdate, + ), + returnValueForMissingStub: null, + ); @override set onTertiaryLongPressUp( - _i14.GestureLongPressUpCallback? _onTertiaryLongPressUp) => - super.noSuchMethod( - Invocation.setter( - #onTertiaryLongPressUp, - _onTertiaryLongPressUp, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressUpCallback? _onTertiaryLongPressUp, + ) => super.noSuchMethod( + Invocation.setter(#onTertiaryLongPressUp, _onTertiaryLongPressUp), + returnValueForMissingStub: null, + ); @override set onTertiaryLongPressEnd( - _i14.GestureLongPressEndCallback? _onTertiaryLongPressEnd) => - super.noSuchMethod( - Invocation.setter( - #onTertiaryLongPressEnd, - _onTertiaryLongPressEnd, - ), - returnValueForMissingStub: null, - ); + _i14.GestureLongPressEndCallback? _onTertiaryLongPressEnd, + ) => super.noSuchMethod( + Invocation.setter(#onTertiaryLongPressEnd, _onTertiaryLongPressEnd), + returnValueForMissingStub: null, + ); @override - String get debugDescription => (super.noSuchMethod( - Invocation.getter(#debugDescription), - returnValue: _i8.dummyValue( - this, - Invocation.getter(#debugDescription), - ), - ) as String); + String get debugDescription => + (super.noSuchMethod( + Invocation.getter(#debugDescription), + returnValue: _i8.dummyValue( + this, + Invocation.getter(#debugDescription), + ), + ) + as String); @override - _i5.GestureRecognizerState get state => (super.noSuchMethod( - Invocation.getter(#state), - returnValue: _i5.GestureRecognizerState.ready, - ) as _i5.GestureRecognizerState); + _i5.GestureRecognizerState get state => + (super.noSuchMethod( + Invocation.getter(#state), + returnValue: _i5.GestureRecognizerState.ready, + ) + as _i5.GestureRecognizerState); @override set team(_i5.GestureArenaTeam? value) => super.noSuchMethod( - Invocation.setter( - #team, - value, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#team, value), + returnValueForMissingStub: null, + ); @override set gestureSettings(_i11.DeviceGestureSettings? _gestureSettings) => super.noSuchMethod( - Invocation.setter( - #gestureSettings, - _gestureSettings, - ), + Invocation.setter(#gestureSettings, _gestureSettings), returnValueForMissingStub: null, ); @override set supportedDevices(Set<_i12.PointerDeviceKind>? _supportedDevices) => super.noSuchMethod( - Invocation.setter( - #supportedDevices, - _supportedDevices, - ), + Invocation.setter(#supportedDevices, _supportedDevices), returnValueForMissingStub: null, ); @override - _i5.AllowedButtonsFilter get allowedButtonsFilter => (super.noSuchMethod( - Invocation.getter(#allowedButtonsFilter), - returnValue: (int buttons) => false, - ) as _i5.AllowedButtonsFilter); + _i5.AllowedButtonsFilter get allowedButtonsFilter => + (super.noSuchMethod( + Invocation.getter(#allowedButtonsFilter), + returnValue: (int buttons) => false, + ) + as _i5.AllowedButtonsFilter); @override - bool isPointerAllowed(_i10.PointerDownEvent? event) => (super.noSuchMethod( - Invocation.method( - #isPointerAllowed, - [event], - ), - returnValue: false, - ) as bool); + bool isPointerAllowed(_i10.PointerDownEvent? event) => + (super.noSuchMethod( + Invocation.method(#isPointerAllowed, [event]), + returnValue: false, + ) + as bool); @override void didExceedDeadline() => super.noSuchMethod( - Invocation.method( - #didExceedDeadline, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#didExceedDeadline, []), + returnValueForMissingStub: null, + ); @override void handlePrimaryPointer(_i10.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #handlePrimaryPointer, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handlePrimaryPointer, [event]), + returnValueForMissingStub: null, + ); @override void resolve(_i5.GestureDisposition? disposition) => super.noSuchMethod( - Invocation.method( - #resolve, - [disposition], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#resolve, [disposition]), + returnValueForMissingStub: null, + ); @override void acceptGesture(int? pointer) => super.noSuchMethod( - Invocation.method( - #acceptGesture, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#acceptGesture, [pointer]), + returnValueForMissingStub: null, + ); @override void addAllowedPointer(_i10.PointerDownEvent? event) => super.noSuchMethod( - Invocation.method( - #addAllowedPointer, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addAllowedPointer, [event]), + returnValueForMissingStub: null, + ); @override void handleNonAllowedPointer(_i10.PointerDownEvent? event) => super.noSuchMethod( - Invocation.method( - #handleNonAllowedPointer, - [event], - ), + Invocation.method(#handleNonAllowedPointer, [event]), returnValueForMissingStub: null, ); @override void handleEvent(_i10.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #handleEvent, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#handleEvent, [event]), + returnValueForMissingStub: null, + ); @override void didExceedDeadlineWithEvent(_i10.PointerDownEvent? event) => super.noSuchMethod( - Invocation.method( - #didExceedDeadlineWithEvent, - [event], - ), + Invocation.method(#didExceedDeadlineWithEvent, [event]), returnValueForMissingStub: null, ); @override void rejectGesture(int? pointer) => super.noSuchMethod( - Invocation.method( - #rejectGesture, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rejectGesture, [pointer]), + returnValueForMissingStub: null, + ); @override void didStopTrackingLastPointer(int? pointer) => super.noSuchMethod( - Invocation.method( - #didStopTrackingLastPointer, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#didStopTrackingLastPointer, [pointer]), + returnValueForMissingStub: null, + ); @override void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); @override void debugFillProperties(_i3.DiagnosticPropertiesBuilder? properties) => super.noSuchMethod( - Invocation.method( - #debugFillProperties, - [properties], - ), + Invocation.method(#debugFillProperties, [properties]), returnValueForMissingStub: null, ); @override - void resolvePointer( - int? pointer, - _i5.GestureDisposition? disposition, - ) => + void resolvePointer(int? pointer, _i5.GestureDisposition? disposition) => super.noSuchMethod( - Invocation.method( - #resolvePointer, - [ - pointer, - disposition, - ], - ), + Invocation.method(#resolvePointer, [pointer, disposition]), returnValueForMissingStub: null, ); @override - void startTrackingPointer( - int? pointer, [ - _i10.Matrix4? transform, - ]) => + void startTrackingPointer(int? pointer, [_i10.Matrix4? transform]) => super.noSuchMethod( - Invocation.method( - #startTrackingPointer, - [ - pointer, - transform, - ], - ), + Invocation.method(#startTrackingPointer, [pointer, transform]), returnValueForMissingStub: null, ); @override void stopTrackingPointer(int? pointer) => super.noSuchMethod( - Invocation.method( - #stopTrackingPointer, - [pointer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#stopTrackingPointer, [pointer]), + returnValueForMissingStub: null, + ); @override void stopTrackingIfPointerNoLongerDown(_i10.PointerEvent? event) => super.noSuchMethod( - Invocation.method( - #stopTrackingIfPointerNoLongerDown, - [event], - ), + Invocation.method(#stopTrackingIfPointerNoLongerDown, [event]), returnValueForMissingStub: null, ); @override void addPointerPanZoom(_i11.PointerPanZoomStartEvent? event) => super.noSuchMethod( - Invocation.method( - #addPointerPanZoom, - [event], - ), + Invocation.method(#addPointerPanZoom, [event]), returnValueForMissingStub: null, ); @override void addAllowedPointerPanZoom(_i11.PointerPanZoomStartEvent? event) => super.noSuchMethod( - Invocation.method( - #addAllowedPointerPanZoom, - [event], - ), + Invocation.method(#addAllowedPointerPanZoom, [event]), returnValueForMissingStub: null, ); @override void addPointer(_i10.PointerDownEvent? event) => super.noSuchMethod( - Invocation.method( - #addPointer, - [event], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addPointer, [event]), + returnValueForMissingStub: null, + ); @override void handleNonAllowedPointerPanZoom(_i11.PointerPanZoomStartEvent? event) => super.noSuchMethod( - Invocation.method( - #handleNonAllowedPointerPanZoom, - [event], - ), + Invocation.method(#handleNonAllowedPointerPanZoom, [event]), returnValueForMissingStub: null, ); @override bool isPointerPanZoomAllowed(_i11.PointerPanZoomStartEvent? event) => (super.noSuchMethod( - Invocation.method( - #isPointerPanZoomAllowed, - [event], - ), - returnValue: false, - ) as bool); + Invocation.method(#isPointerPanZoomAllowed, [event]), + returnValue: false, + ) + as bool); @override - _i12.PointerDeviceKind getKindForPointer(int? pointer) => (super.noSuchMethod( - Invocation.method( - #getKindForPointer, - [pointer], - ), - returnValue: _i12.PointerDeviceKind.touch, - ) as _i12.PointerDeviceKind); + _i12.PointerDeviceKind getKindForPointer(int? pointer) => + (super.noSuchMethod( + Invocation.method(#getKindForPointer, [pointer]), + returnValue: _i12.PointerDeviceKind.touch, + ) + as _i12.PointerDeviceKind); @override T? invokeCallback( @@ -1934,14 +1458,14 @@ class MockLongPressGestureRecognizer extends _i1.Mock _i5.RecognizerCallback? callback, { String Function()? debugReport, }) => - (super.noSuchMethod(Invocation.method( - #invokeCallback, - [ - name, - callback, - ], - {#debugReport: debugReport}, - )) as T?); + (super.noSuchMethod( + Invocation.method( + #invokeCallback, + [name, callback], + {#debugReport: debugReport}, + ), + ) + as T?); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -1949,78 +1473,60 @@ class MockLongPressGestureRecognizer extends _i1.Mock @override String toStringShallow({ - String? joiner = r', ', + String? joiner = ', ', _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.debug, }) => (super.noSuchMethod( - Invocation.method( - #toStringShallow, - [], - { - #joiner: joiner, - #minLevel: minLevel, - }, - ), - returnValue: _i8.dummyValue( - this, - Invocation.method( - #toStringShallow, - [], - { + Invocation.method(#toStringShallow, [], { #joiner: joiner, #minLevel: minLevel, - }, - ), - ), - ) as String); + }), + returnValue: _i8.dummyValue( + this, + Invocation.method(#toStringShallow, [], { + #joiner: joiner, + #minLevel: minLevel, + }), + ), + ) + as String); @override String toStringDeep({ - String? prefixLineOne = r'', + String? prefixLineOne = '', String? prefixOtherLines, _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.debug, int? wrapWidth = 65, }) => (super.noSuchMethod( - Invocation.method( - #toStringDeep, - [], - { - #prefixLineOne: prefixLineOne, - #prefixOtherLines: prefixOtherLines, - #minLevel: minLevel, - #wrapWidth: wrapWidth, - }, - ), - returnValue: _i8.dummyValue( - this, - Invocation.method( - #toStringDeep, - [], - { + Invocation.method(#toStringDeep, [], { #prefixLineOne: prefixLineOne, #prefixOtherLines: prefixOtherLines, #minLevel: minLevel, #wrapWidth: wrapWidth, - }, - ), - ), - ) as String); - - @override - String toStringShort() => (super.noSuchMethod( - Invocation.method( - #toStringShort, - [], - ), - returnValue: _i8.dummyValue( - this, - Invocation.method( - #toStringShort, - [], - ), - ), - ) as String); + }), + returnValue: _i8.dummyValue( + this, + Invocation.method(#toStringDeep, [], { + #prefixLineOne: prefixLineOne, + #prefixOtherLines: prefixOtherLines, + #minLevel: minLevel, + #wrapWidth: wrapWidth, + }), + ), + ) + as String); + + @override + String toStringShort() => + (super.noSuchMethod( + Invocation.method(#toStringShort, []), + returnValue: _i8.dummyValue( + this, + Invocation.method(#toStringShort, []), + ), + ) + as String); @override _i3.DiagnosticsNode toDiagnosticsNode({ @@ -2028,33 +1534,25 @@ class MockLongPressGestureRecognizer extends _i1.Mock _i3.DiagnosticsTreeStyle? style, }) => (super.noSuchMethod( - Invocation.method( - #toDiagnosticsNode, - [], - { - #name: name, - #style: style, - }, - ), - returnValue: _FakeDiagnosticsNode_2( - this, - Invocation.method( - #toDiagnosticsNode, - [], - { + Invocation.method(#toDiagnosticsNode, [], { #name: name, #style: style, - }, - ), - ), - ) as _i3.DiagnosticsNode); - - @override - List<_i3.DiagnosticsNode> debugDescribeChildren() => (super.noSuchMethod( - Invocation.method( - #debugDescribeChildren, - [], - ), - returnValue: <_i3.DiagnosticsNode>[], - ) as List<_i3.DiagnosticsNode>); + }), + returnValue: _FakeDiagnosticsNode_2( + this, + Invocation.method(#toDiagnosticsNode, [], { + #name: name, + #style: style, + }), + ), + ) + as _i3.DiagnosticsNode); + + @override + List<_i3.DiagnosticsNode> debugDescribeChildren() => + (super.noSuchMethod( + Invocation.method(#debugDescribeChildren, []), + returnValue: <_i3.DiagnosticsNode>[], + ) + as List<_i3.DiagnosticsNode>); } diff --git a/test/chart/line_chart/line_chart_painter_test.mocks.dart b/test/chart/line_chart/line_chart_painter_test.mocks.dart index a01595352..38eb73d0d 100644 --- a/test/chart/line_chart/line_chart_painter_test.mocks.dart +++ b/test/chart/line_chart/line_chart_painter_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/chart/line_chart/line_chart_painter_test.dart. // Do not manually edit this file. @@ -25,49 +25,30 @@ import 'package:mockito/src/dummies.dart' as _i9; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { - _FakeRect_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCanvas_1 extends _i1.SmartFake implements _i2.Canvas { - _FakeCanvas_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCanvas_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSize_2 extends _i1.SmartFake implements _i2.Size { - _FakeSize_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSize_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWidget_3 extends _i1.SmartFake implements _i3.Widget { - _FakeWidget_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -76,13 +57,8 @@ class _FakeWidget_3 extends _i1.SmartFake implements _i3.Widget { class _FakeInheritedWidget_4 extends _i1.SmartFake implements _i3.InheritedWidget { - _FakeInheritedWidget_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -91,40 +67,24 @@ class _FakeInheritedWidget_4 extends _i1.SmartFake class _FakeDiagnosticsNode_5 extends _i1.SmartFake implements _i3.DiagnosticsNode { - _FakeDiagnosticsNode_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i4.TextTreeConfiguration? parentConfiguration, _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } class _FakeOffset_6 extends _i1.SmartFake implements _i2.Offset { - _FakeOffset_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOffset_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBorderSide_7 extends _i1.SmartFake implements _i3.BorderSide { - _FakeBorderSide_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBorderSide_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -132,13 +92,8 @@ class _FakeBorderSide_7 extends _i1.SmartFake implements _i3.BorderSide { } class _FakeTextStyle_8 extends _i1.SmartFake implements _i3.TextStyle { - _FakeTextStyle_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeTextStyle_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -146,13 +101,8 @@ class _FakeTextStyle_8 extends _i1.SmartFake implements _i3.TextStyle { } class _FakePath_9 extends _i1.SmartFake implements _i2.Path { - _FakePath_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePath_9(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [Canvas]. @@ -165,331 +115,170 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void restoreToCount(int? count) => super.noSuchMethod( - Invocation.method( - #restoreToCount, - [count], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); @override - int getSaveCount() => (super.noSuchMethod( - Invocation.method( - #getSaveCount, - [], - ), - returnValue: 0, - ) as int); + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override - void scale( - double? sx, [ - double? sy, - ]) => - super.noSuchMethod( - Invocation.method( - #scale, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radians) => super.noSuchMethod( - Invocation.method( - #rotate, - [radians], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); @override - void skew( - double? sx, - double? sy, - ) => - super.noSuchMethod( - Invocation.method( - #skew, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); @override void transform(_i5.Float64List? matrix4) => super.noSuchMethod( - Invocation.method( - #transform, - [matrix4], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); @override - _i5.Float64List getTransform() => (super.noSuchMethod( - Invocation.method( - #getTransform, - [], - ), - returnValue: _i5.Float64List(0), - ) as _i5.Float64List); + _i5.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i5.Float64List(0), + ) + as _i5.Float64List); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void clipRRect( - _i2.RRect? rrect, { - bool? doAntiAlias = true, - }) => + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipRRect, - [rrect], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - _i2.Rect getLocalClipBounds() => (super.noSuchMethod( - Invocation.method( - #getLocalClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getLocalClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - _i2.Rect getDestinationClipBounds() => (super.noSuchMethod( - Invocation.method( - #getDestinationClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getDestinationClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - void drawColor( - _i2.Color? color, - _i2.BlendMode? blendMode, - ) => + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); + + @override + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); + + @override + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => super.noSuchMethod( - Invocation.method( - #drawColor, - [ - color, - blendMode, - ], - ), + Invocation.method(#drawColor, [color, blendMode]), returnValueForMissingStub: null, ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override void drawPaint(_i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawPaint, - [paint], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override - void drawDRRect( - _i2.RRect? outer, - _i2.RRect? inner, - _i2.Paint? paint, - ) => + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawDRRect, - [ - outer, - inner, - paint, - ], - ), + Invocation.method(#drawDRRect, [outer, inner, paint]), returnValueForMissingStub: null, ); @override - void drawOval( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawOval, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawCircle( - _i2.Offset? c, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - c, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [c, radius, paint]), returnValueForMissingStub: null, ); @@ -500,52 +289,27 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @@ -555,19 +319,10 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? src, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageRect, - [ - image, - src, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawImageNine( @@ -575,42 +330,21 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? center, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageNine, - [ - image, - center, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawParagraph( - _i2.Paragraph? paragraph, - _i2.Offset? offset, - ) => + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawParagraph, - [ - paragraph, - offset, - ], - ), + Invocation.method(#drawParagraph, [paragraph, offset]), returnValueForMissingStub: null, ); @@ -619,54 +353,30 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.PointMode? pointMode, List<_i2.Offset>? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawRawPoints( _i2.PointMode? pointMode, _i5.Float32List? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawVertices( _i2.Vertices? vertices, _i2.BlendMode? blendMode, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawVertices, - [ - vertices, - blendMode, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); @override void drawAtlas( @@ -677,22 +387,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawAtlas, - [ - atlas, - transforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawRawAtlas( @@ -703,22 +409,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawAtlas, - [ - atlas, - rstTransforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawShadow( @@ -726,19 +428,15 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Color? color, double? elevation, bool? transparentOccluder, - ) => - super.noSuchMethod( - Invocation.method( - #drawShadow, - [ - path, - color, - elevation, - transparentOccluder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); } /// A class which mocks [CanvasWrapper]. @@ -750,222 +448,114 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { } @override - _i2.Canvas get canvas => (super.noSuchMethod( - Invocation.getter(#canvas), - returnValue: _FakeCanvas_1( - this, - Invocation.getter(#canvas), - ), - ) as _i2.Canvas); + _i2.Canvas get canvas => + (super.noSuchMethod( + Invocation.getter(#canvas), + returnValue: _FakeCanvas_1(this, Invocation.getter(#canvas)), + ) + as _i2.Canvas); @override - _i2.Size get size => (super.noSuchMethod( - Invocation.getter(#size), - returnValue: _FakeSize_2( - this, - Invocation.getter(#size), - ), - ) as _i2.Size); + _i2.Size get size => + (super.noSuchMethod( + Invocation.getter(#size), + returnValue: _FakeSize_2(this, Invocation.getter(#size)), + ) + as _i2.Size); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radius) => super.noSuchMethod( - Invocation.method( - #rotate, - [radius], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radius]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override - void drawCircle( - _i2.Offset? center, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? center, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - center, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [center, radius, paint]), returnValueForMissingStub: null, ); @@ -976,52 +566,31 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawText( _i3.TextPainter? tp, _i2.Offset? offset, [ double? rotateAngle, - ]) => - super.noSuchMethod( - Invocation.method( - #drawText, - [ - tp, - offset, - rotateAngle, - ], - ), - returnValueForMissingStub: null, - ); + ]) => super.noSuchMethod( + Invocation.method(#drawText, [tp, offset, rotateAngle]), + returnValueForMissingStub: null, + ); @override - void drawVerticalText( - _i3.TextPainter? tp, - _i2.Offset? offset, - ) => + void drawVerticalText(_i3.TextPainter? tp, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawVerticalText, - [ - tp, - offset, - ], - ), + Invocation.method(#drawVerticalText, [tp, offset]), returnValueForMissingStub: null, ); @@ -1030,18 +599,28 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i7.FlDotPainter? painter, _i7.FlSpot? spot, _i2.Offset? offset, - ) => - super.noSuchMethod( - Invocation.method( - #drawDot, - [ - painter, - spot, - offset, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDot, [painter, spot, offset]), + returnValueForMissingStub: null, + ); + + @override + void drawErrorIndicator( + _i7.FlSpotErrorRangePainter? painter, + _i7.FlSpot? origin, + _i2.Offset? offset, + _i2.Rect? errorRelativeRect, + _i7.AxisChartData? axisData, + ) => super.noSuchMethod( + Invocation.method(#drawErrorIndicator, [ + painter, + origin, + offset, + errorRelativeRect, + axisData, + ]), + returnValueForMissingStub: null, + ); @override void drawRotated({ @@ -1050,21 +629,16 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i2.Offset? drawOffset = _i2.Offset.zero, required double? angle, required _i6.DrawCallback? drawCallback, - }) => - super.noSuchMethod( - Invocation.method( - #drawRotated, - [], - { - #size: size, - #rotationOffset: rotationOffset, - #drawOffset: drawOffset, - #angle: angle, - #drawCallback: drawCallback, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#drawRotated, [], { + #size: size, + #rotationOffset: rotationOffset, + #drawOffset: drawOffset, + #angle: angle, + #drawCallback: drawCallback, + }), + returnValueForMissingStub: null, + ); @override void drawDashedLine( @@ -1072,19 +646,10 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i2.Offset? to, _i2.Paint? painter, List? dashArray, - ) => - super.noSuchMethod( - Invocation.method( - #drawDashedLine, - [ - from, - to, - painter, - dashArray, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDashedLine, [from, to, painter, dashArray]), + returnValueForMissingStub: null, + ); } /// A class which mocks [BuildContext]. @@ -1096,25 +661,25 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { } @override - _i3.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_3( - this, - Invocation.getter(#widget), - ), - ) as _i3.Widget); + _i3.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_3(this, Invocation.getter(#widget)), + ) + as _i3.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i3.InheritedWidget dependOnInheritedElement( @@ -1122,47 +687,39 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_4( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i3.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_4( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i3.InheritedWidget); @override void visitAncestorElements(_i3.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i3.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i3.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -1172,20 +729,13 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); @override _i3.DiagnosticsNode describeWidget( @@ -1193,48 +743,36 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); - - @override - List<_i3.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); + + @override + List<_i3.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i3.DiagnosticsNode>[], - ) as List<_i3.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i3.DiagnosticsNode>[], + ) + as List<_i3.DiagnosticsNode>); @override _i3.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i3.DiagnosticsNode); } /// A class which mocks [Utils]. @@ -1246,91 +784,49 @@ class MockUtils extends _i1.Mock implements _i8.Utils { } @override - double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #radians, - [degrees], - ), - returnValue: 0.0, - ) as double); - - @override - double degrees(double? radians) => (super.noSuchMethod( - Invocation.method( - #degrees, - [radians], - ), - returnValue: 0.0, - ) as double); - - @override - _i2.Size getDefaultSize(_i2.Size? screenSize) => (super.noSuchMethod( - Invocation.method( - #getDefaultSize, - [screenSize], - ), - returnValue: _FakeSize_2( - this, - Invocation.method( - #getDefaultSize, - [screenSize], - ), - ), - ) as _i2.Size); - - @override - double translateRotatedPosition( - double? size, - double? degree, - ) => + double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #translateRotatedPosition, - [ - size, - degree, - ], - ), - returnValue: 0.0, - ) as double); - - @override - _i2.Offset calculateRotationOffset( - _i2.Size? size, - double? degree, - ) => + Invocation.method(#radians, [degrees]), + returnValue: 0.0, + ) + as double); + + @override + double degrees(double? radians) => + (super.noSuchMethod( + Invocation.method(#degrees, [radians]), + returnValue: 0.0, + ) + as double); + + @override + double translateRotatedPosition(double? size, double? degree) => + (super.noSuchMethod( + Invocation.method(#translateRotatedPosition, [size, degree]), + returnValue: 0.0, + ) + as double); + + @override + _i2.Offset calculateRotationOffset(_i2.Size? size, double? degree) => (super.noSuchMethod( - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - returnValue: _FakeOffset_6( - this, - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - ), - ) as _i2.Offset); + Invocation.method(#calculateRotationOffset, [size, degree]), + returnValue: _FakeOffset_6( + this, + Invocation.method(#calculateRotationOffset, [size, degree]), + ), + ) + as _i2.Offset); @override _i3.BorderRadius? normalizeBorderRadius( _i3.BorderRadius? borderRadius, double? width, ) => - (super.noSuchMethod(Invocation.method( - #normalizeBorderRadius, - [ - borderRadius, - width, - ], - )) as _i3.BorderRadius?); + (super.noSuchMethod( + Invocation.method(#normalizeBorderRadius, [borderRadius, width]), + ) + as _i3.BorderRadius?); @override _i3.BorderSide normalizeBorderSide( @@ -1338,24 +834,13 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? width, ) => (super.noSuchMethod( - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - returnValue: _FakeBorderSide_7( - this, - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - ), - ) as _i3.BorderSide); + Invocation.method(#normalizeBorderSide, [borderSide, width]), + returnValue: _FakeBorderSide_7( + this, + Invocation.method(#normalizeBorderSide, [borderSide, width]), + ), + ) + as _i3.BorderSide); @override double getEfficientInterval( @@ -1364,62 +849,41 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? pixelPerInterval = 40.0, }) => (super.noSuchMethod( - Invocation.method( - #getEfficientInterval, - [ - axisViewSize, - diffInAxis, - ], - {#pixelPerInterval: pixelPerInterval}, - ), - returnValue: 0.0, - ) as double); - - @override - double roundInterval(double? input) => (super.noSuchMethod( - Invocation.method( - #roundInterval, - [input], - ), - returnValue: 0.0, - ) as double); - - @override - int getFractionDigits(double? value) => (super.noSuchMethod( - Invocation.method( - #getFractionDigits, - [value], - ), - returnValue: 0, - ) as int); - - @override - String formatNumber( - double? axisMin, - double? axisMax, - double? axisValue, - ) => + Invocation.method( + #getEfficientInterval, + [axisViewSize, diffInAxis], + {#pixelPerInterval: pixelPerInterval}, + ), + returnValue: 0.0, + ) + as double); + + @override + double roundInterval(double? input) => + (super.noSuchMethod( + Invocation.method(#roundInterval, [input]), + returnValue: 0.0, + ) + as double); + + @override + int getFractionDigits(double? value) => + (super.noSuchMethod( + Invocation.method(#getFractionDigits, [value]), + returnValue: 0, + ) + as int); + + @override + String formatNumber(double? axisMin, double? axisMax, double? axisValue) => (super.noSuchMethod( - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - returnValue: _i9.dummyValue( - this, - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - ), - ) as String); + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + returnValue: _i9.dummyValue( + this, + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + ), + ) + as String); @override _i3.TextStyle getThemeAwareTextStyle( @@ -1427,24 +891,19 @@ class MockUtils extends _i1.Mock implements _i8.Utils { _i3.TextStyle? providedStyle, ) => (super.noSuchMethod( - Invocation.method( - #getThemeAwareTextStyle, - [ - context, - providedStyle, - ], - ), - returnValue: _FakeTextStyle_8( - this, - Invocation.method( - #getThemeAwareTextStyle, - [ + Invocation.method(#getThemeAwareTextStyle, [ context, providedStyle, - ], - ), - ), - ) as _i3.TextStyle); + ]), + returnValue: _FakeTextStyle_8( + this, + Invocation.method(#getThemeAwareTextStyle, [ + context, + providedStyle, + ]), + ), + ) + as _i3.TextStyle); @override double getBestInitialIntervalValue( @@ -1454,26 +913,22 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? baseline = 0.0, }) => (super.noSuchMethod( - Invocation.method( - #getBestInitialIntervalValue, - [ - min, - max, - interval, - ], - {#baseline: baseline}, - ), - returnValue: 0.0, - ) as double); - - @override - double convertRadiusToSigma(double? radius) => (super.noSuchMethod( - Invocation.method( - #convertRadiusToSigma, - [radius], - ), - returnValue: 0.0, - ) as double); + Invocation.method( + #getBestInitialIntervalValue, + [min, max, interval], + {#baseline: baseline}, + ), + returnValue: 0.0, + ) + as double); + + @override + double convertRadiusToSigma(double? radius) => + (super.noSuchMethod( + Invocation.method(#convertRadiusToSigma, [radius]), + returnValue: 0.0, + ) + as double); } /// A class which mocks [LineChartPainter]. @@ -1489,52 +944,29 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i3.BuildContext? context, _i6.CanvasWrapper? canvasWrapper, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #paint, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#paint, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void clipToBorder( _i6.CanvasWrapper? canvasWrapper, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #clipToBorder, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipToBorder, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawBarLine( _i6.CanvasWrapper? canvasWrapper, _i7.LineChartBarData? barData, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBarLine, - [ - canvasWrapper, - barData, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBarLine, [canvasWrapper, barData, holder]), + returnValueForMissingStub: null, + ); @override void drawBetweenBarsArea( @@ -1542,55 +974,53 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i7.LineChartData? data, _i7.BetweenBarsData? betweenBarsData, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBetweenBarsArea, - [ - canvasWrapper, - data, - betweenBarsData, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBetweenBarsArea, [ + canvasWrapper, + data, + betweenBarsData, + holder, + ]), + returnValueForMissingStub: null, + ); @override void drawDots( _i6.CanvasWrapper? canvasWrapper, _i7.LineChartBarData? barData, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawDots, - [ - canvasWrapper, - barData, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDots, [canvasWrapper, barData, holder]), + returnValueForMissingStub: null, + ); + + @override + void drawErrorIndicatorData( + _i6.CanvasWrapper? canvasWrapper, + _i7.LineChartBarData? barData, + _i11.PaintHolder<_i7.LineChartData>? holder, + ) => super.noSuchMethod( + Invocation.method(#drawErrorIndicatorData, [ + canvasWrapper, + barData, + holder, + ]), + returnValueForMissingStub: null, + ); @override void drawTouchedSpotsIndicator( _i6.CanvasWrapper? canvasWrapper, List<_i10.LineIndexDrawingInfo>? lineIndexDrawingInfo, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawTouchedSpotsIndicator, - [ - canvasWrapper, - lineIndexDrawingInfo, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawTouchedSpotsIndicator, [ + canvasWrapper, + lineIndexDrawingInfo, + holder, + ]), + returnValueForMissingStub: null, + ); @override _i2.Path generateBarPath( @@ -1601,30 +1031,21 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? appendToPath, }) => (super.noSuchMethod( - Invocation.method( - #generateBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - returnValue: _FakePath_9( - this, - Invocation.method( - #generateBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - ), - ) as _i2.Path); + Invocation.method( + #generateBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + returnValue: _FakePath_9( + this, + Invocation.method( + #generateBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + ), + ) + as _i2.Path); @override _i2.Path generateNormalBarPath( @@ -1635,30 +1056,21 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? appendToPath, }) => (super.noSuchMethod( - Invocation.method( - #generateNormalBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - returnValue: _FakePath_9( - this, - Invocation.method( - #generateNormalBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - ), - ) as _i2.Path); + Invocation.method( + #generateNormalBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + returnValue: _FakePath_9( + this, + Invocation.method( + #generateNormalBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + ), + ) + as _i2.Path); @override _i2.Path generateStepBarPath( @@ -1669,30 +1081,21 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? appendToPath, }) => (super.noSuchMethod( - Invocation.method( - #generateStepBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - returnValue: _FakePath_9( - this, - Invocation.method( - #generateStepBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - ), - ) as _i2.Path); + Invocation.method( + #generateStepBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + returnValue: _FakePath_9( + this, + Invocation.method( + #generateStepBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + ), + ) + as _i2.Path); @override _i2.Path generateBelowBarPath( @@ -1704,32 +1107,21 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { bool? fillCompletely = false, }) => (super.noSuchMethod( - Invocation.method( - #generateBelowBarPath, - [ - viewSize, - barData, - barPath, - barSpots, - holder, - ], - {#fillCompletely: fillCompletely}, - ), - returnValue: _FakePath_9( - this, - Invocation.method( - #generateBelowBarPath, - [ - viewSize, - barData, - barPath, - barSpots, - holder, - ], - {#fillCompletely: fillCompletely}, - ), - ), - ) as _i2.Path); + Invocation.method( + #generateBelowBarPath, + [viewSize, barData, barPath, barSpots, holder], + {#fillCompletely: fillCompletely}, + ), + returnValue: _FakePath_9( + this, + Invocation.method( + #generateBelowBarPath, + [viewSize, barData, barPath, barSpots, holder], + {#fillCompletely: fillCompletely}, + ), + ), + ) + as _i2.Path); @override _i2.Path generateAboveBarPath( @@ -1741,32 +1133,21 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { bool? fillCompletely = false, }) => (super.noSuchMethod( - Invocation.method( - #generateAboveBarPath, - [ - viewSize, - barData, - barPath, - barSpots, - holder, - ], - {#fillCompletely: fillCompletely}, - ), - returnValue: _FakePath_9( - this, - Invocation.method( - #generateAboveBarPath, - [ - viewSize, - barData, - barPath, - barSpots, - holder, - ], - {#fillCompletely: fillCompletely}, - ), - ), - ) as _i2.Path); + Invocation.method( + #generateAboveBarPath, + [viewSize, barData, barPath, barSpots, holder], + {#fillCompletely: fillCompletely}, + ), + returnValue: _FakePath_9( + this, + Invocation.method( + #generateAboveBarPath, + [viewSize, barData, barPath, barSpots, holder], + {#fillCompletely: fillCompletely}, + ), + ), + ) + as _i2.Path); @override void drawBelowBar( @@ -1775,20 +1156,16 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? filledAboveBarPath, _i11.PaintHolder<_i7.LineChartData>? holder, _i7.LineChartBarData? barData, - ) => - super.noSuchMethod( - Invocation.method( - #drawBelowBar, - [ - canvasWrapper, - belowBarPath, - filledAboveBarPath, - holder, - barData, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBelowBar, [ + canvasWrapper, + belowBarPath, + filledAboveBarPath, + holder, + barData, + ]), + returnValueForMissingStub: null, + ); @override void drawAboveBar( @@ -1797,20 +1174,16 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? filledBelowBarPath, _i11.PaintHolder<_i7.LineChartData>? holder, _i7.LineChartBarData? barData, - ) => - super.noSuchMethod( - Invocation.method( - #drawAboveBar, - [ - canvasWrapper, - aboveBarPath, - filledBelowBarPath, - holder, - barData, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAboveBar, [ + canvasWrapper, + aboveBarPath, + filledBelowBarPath, + holder, + barData, + ]), + returnValueForMissingStub: null, + ); @override void drawBetweenBar( @@ -1819,38 +1192,26 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i7.BetweenBarsData? betweenBarsData, _i2.Rect? aroundRect, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBetweenBar, - [ - canvasWrapper, - barPath, - betweenBarsData, - aroundRect, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBetweenBar, [ + canvasWrapper, + barPath, + betweenBarsData, + aroundRect, + holder, + ]), + returnValueForMissingStub: null, + ); @override void drawBarShadow( _i6.CanvasWrapper? canvasWrapper, _i2.Path? barPath, _i7.LineChartBarData? barData, - ) => - super.noSuchMethod( - Invocation.method( - #drawBarShadow, - [ - canvasWrapper, - barPath, - barData, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBarShadow, [canvasWrapper, barPath, barData]), + returnValueForMissingStub: null, + ); @override void drawBar( @@ -1858,19 +1219,10 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? barPath, _i7.LineChartBarData? barData, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBar, - [ - canvasWrapper, - barPath, - barData, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBar, [canvasWrapper, barPath, barData, holder]), + returnValueForMissingStub: null, + ); @override void drawTouchTooltip( @@ -1880,21 +1232,17 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i7.FlSpot? showOnSpot, _i7.ShowingTooltipIndicators? showingTooltipSpots, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawTouchTooltip, - [ - context, - canvasWrapper, - tooltipData, - showOnSpot, - showingTooltipSpots, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawTouchTooltip, [ + context, + canvasWrapper, + tooltipData, + showOnSpot, + showingTooltipSpots, + holder, + ]), + returnValueForMissingStub: null, + ); @override double getBarLineXLength( @@ -1903,16 +1251,14 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i11.PaintHolder<_i7.LineChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #getBarLineXLength, - [ - barData, - chartUsableSize, - holder, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getBarLineXLength, [ + barData, + chartUsableSize, + holder, + ]), + returnValue: 0.0, + ) + as double); @override List<_i7.TouchLineBarSpot>? handleTouch( @@ -1920,14 +1266,10 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Size? size, _i11.PaintHolder<_i7.LineChartData>? holder, ) => - (super.noSuchMethod(Invocation.method( - #handleTouch, - [ - localPosition, - size, - holder, - ], - )) as List<_i7.TouchLineBarSpot>?); + (super.noSuchMethod( + Invocation.method(#handleTouch, [localPosition, size, holder]), + ) + as List<_i7.TouchLineBarSpot>?); @override _i7.TouchLineBarSpot? getNearestTouchedSpot( @@ -1937,82 +1279,53 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { int? barDataPosition, _i11.PaintHolder<_i7.LineChartData>? holder, ) => - (super.noSuchMethod(Invocation.method( - #getNearestTouchedSpot, - [ - viewSize, - touchedPoint, - barData, - barDataPosition, - holder, - ], - )) as _i7.TouchLineBarSpot?); + (super.noSuchMethod( + Invocation.method(#getNearestTouchedSpot, [ + viewSize, + touchedPoint, + barData, + barDataPosition, + holder, + ]), + ) + as _i7.TouchLineBarSpot?); @override void drawGrid( _i6.CanvasWrapper? canvasWrapper, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawGrid, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawGrid, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawBackground( _i6.CanvasWrapper? canvasWrapper, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBackground, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBackground, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawRangeAnnotation( _i6.CanvasWrapper? canvasWrapper, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawRangeAnnotation, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRangeAnnotation, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawExtraLines( _i3.BuildContext? context, _i6.CanvasWrapper? canvasWrapper, _i11.PaintHolder<_i7.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawExtraLines, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawExtraLines, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawHorizontalLines( @@ -2020,19 +1333,15 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i6.CanvasWrapper? canvasWrapper, _i11.PaintHolder<_i7.LineChartData>? holder, _i2.Size? viewSize, - ) => - super.noSuchMethod( - Invocation.method( - #drawHorizontalLines, - [ - context, - canvasWrapper, - holder, - viewSize, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawHorizontalLines, [ + context, + canvasWrapper, + holder, + viewSize, + ]), + returnValueForMissingStub: null, + ); @override void drawVerticalLines( @@ -2040,19 +1349,15 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i6.CanvasWrapper? canvasWrapper, _i11.PaintHolder<_i7.LineChartData>? holder, _i2.Size? viewSize, - ) => - super.noSuchMethod( - Invocation.method( - #drawVerticalLines, - [ - context, - canvasWrapper, - holder, - viewSize, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVerticalLines, [ + context, + canvasWrapper, + holder, + viewSize, + ]), + returnValueForMissingStub: null, + ); @override double getPixelX( @@ -2061,16 +1366,10 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i11.PaintHolder<_i7.LineChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #getPixelX, - [ - spotX, - viewSize, - holder, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getPixelX, [spotX, viewSize, holder]), + returnValue: 0.0, + ) + as double); @override double getPixelY( @@ -2079,16 +1378,10 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i11.PaintHolder<_i7.LineChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #getPixelY, - [ - spotY, - viewSize, - holder, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getPixelY, [spotY, viewSize, holder]), + returnValue: 0.0, + ) + as double); @override double getTooltipLeft( @@ -2098,15 +1391,13 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { double? tooltipHorizontalOffset, ) => (super.noSuchMethod( - Invocation.method( - #getTooltipLeft, - [ - dx, - tooltipWidth, - tooltipHorizontalAlignment, - tooltipHorizontalOffset, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getTooltipLeft, [ + dx, + tooltipWidth, + tooltipHorizontalAlignment, + tooltipHorizontalOffset, + ]), + returnValue: 0.0, + ) + as double); } diff --git a/test/chart/line_chart/line_chart_renderer_test.mocks.dart b/test/chart/line_chart/line_chart_renderer_test.mocks.dart index b3e9c938c..fad864164 100644 --- a/test/chart/line_chart/line_chart_renderer_test.mocks.dart +++ b/test/chart/line_chart/line_chart_renderer_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/chart/line_chart/line_chart_renderer_test.dart. // Do not manually edit this file. @@ -27,51 +27,32 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { - _FakeRect_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCanvas_1 extends _i1.SmartFake implements _i2.Canvas { - _FakeCanvas_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCanvas_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePaintingContext_2 extends _i1.SmartFake implements _i3.PaintingContext { - _FakePaintingContext_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePaintingContext_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeColorFilterLayer_3 extends _i1.SmartFake implements _i4.ColorFilterLayer { - _FakeColorFilterLayer_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeColorFilterLayer_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -79,13 +60,8 @@ class _FakeColorFilterLayer_3 extends _i1.SmartFake } class _FakeOpacityLayer_4 extends _i1.SmartFake implements _i4.OpacityLayer { - _FakeOpacityLayer_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOpacityLayer_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -93,13 +69,8 @@ class _FakeOpacityLayer_4 extends _i1.SmartFake implements _i4.OpacityLayer { } class _FakeWidget_5 extends _i1.SmartFake implements _i6.Widget { - _FakeWidget_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -108,13 +79,8 @@ class _FakeWidget_5 extends _i1.SmartFake implements _i6.Widget { class _FakeInheritedWidget_6 extends _i1.SmartFake implements _i6.InheritedWidget { - _FakeInheritedWidget_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -123,30 +89,19 @@ class _FakeInheritedWidget_6 extends _i1.SmartFake class _FakeDiagnosticsNode_7 extends _i1.SmartFake implements _i5.DiagnosticsNode { - _FakeDiagnosticsNode_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i5.TextTreeConfiguration? parentConfiguration, _i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } class _FakePath_8 extends _i1.SmartFake implements _i2.Path { - _FakePath_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePath_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [Canvas]. @@ -159,331 +114,170 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void restoreToCount(int? count) => super.noSuchMethod( - Invocation.method( - #restoreToCount, - [count], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); @override - int getSaveCount() => (super.noSuchMethod( - Invocation.method( - #getSaveCount, - [], - ), - returnValue: 0, - ) as int); + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override - void scale( - double? sx, [ - double? sy, - ]) => - super.noSuchMethod( - Invocation.method( - #scale, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radians) => super.noSuchMethod( - Invocation.method( - #rotate, - [radians], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); @override - void skew( - double? sx, - double? sy, - ) => - super.noSuchMethod( - Invocation.method( - #skew, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); @override void transform(_i7.Float64List? matrix4) => super.noSuchMethod( - Invocation.method( - #transform, - [matrix4], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); @override - _i7.Float64List getTransform() => (super.noSuchMethod( - Invocation.method( - #getTransform, - [], - ), - returnValue: _i7.Float64List(0), - ) as _i7.Float64List); + _i7.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i7.Float64List(0), + ) + as _i7.Float64List); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void clipRRect( - _i2.RRect? rrect, { - bool? doAntiAlias = true, - }) => + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipRRect, - [rrect], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - _i2.Rect getLocalClipBounds() => (super.noSuchMethod( - Invocation.method( - #getLocalClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getLocalClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - _i2.Rect getDestinationClipBounds() => (super.noSuchMethod( - Invocation.method( - #getDestinationClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getDestinationClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - void drawColor( - _i2.Color? color, - _i2.BlendMode? blendMode, - ) => + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); + + @override + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); + + @override + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => super.noSuchMethod( - Invocation.method( - #drawColor, - [ - color, - blendMode, - ], - ), + Invocation.method(#drawColor, [color, blendMode]), returnValueForMissingStub: null, ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override void drawPaint(_i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawPaint, - [paint], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override - void drawDRRect( - _i2.RRect? outer, - _i2.RRect? inner, - _i2.Paint? paint, - ) => + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawDRRect, - [ - outer, - inner, - paint, - ], - ), + Invocation.method(#drawDRRect, [outer, inner, paint]), returnValueForMissingStub: null, ); @override - void drawOval( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawOval, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawCircle( - _i2.Offset? c, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - c, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [c, radius, paint]), returnValueForMissingStub: null, ); @@ -494,52 +288,27 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @@ -549,19 +318,10 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? src, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageRect, - [ - image, - src, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawImageNine( @@ -569,42 +329,21 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? center, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageNine, - [ - image, - center, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawParagraph( - _i2.Paragraph? paragraph, - _i2.Offset? offset, - ) => + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawParagraph, - [ - paragraph, - offset, - ], - ), + Invocation.method(#drawParagraph, [paragraph, offset]), returnValueForMissingStub: null, ); @@ -613,54 +352,30 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.PointMode? pointMode, List<_i2.Offset>? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawRawPoints( _i2.PointMode? pointMode, _i7.Float32List? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawVertices( _i2.Vertices? vertices, _i2.BlendMode? blendMode, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawVertices, - [ - vertices, - blendMode, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); @override void drawAtlas( @@ -671,22 +386,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawAtlas, - [ - atlas, - transforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawRawAtlas( @@ -697,22 +408,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawAtlas, - [ - atlas, - rstTransforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawShadow( @@ -720,19 +427,15 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Color? color, double? elevation, bool? transparentOccluder, - ) => - super.noSuchMethod( - Invocation.method( - #drawShadow, - [ - path, - color, - elevation, - transparentOccluder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); } /// A class which mocks [PaintingContext]. @@ -744,93 +447,65 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { } @override - _i2.Rect get estimatedBounds => (super.noSuchMethod( - Invocation.getter(#estimatedBounds), - returnValue: _FakeRect_0( - this, - Invocation.getter(#estimatedBounds), - ), - ) as _i2.Rect); + _i2.Rect get estimatedBounds => + (super.noSuchMethod( + Invocation.getter(#estimatedBounds), + returnValue: _FakeRect_0(this, Invocation.getter(#estimatedBounds)), + ) + as _i2.Rect); @override - _i2.Canvas get canvas => (super.noSuchMethod( - Invocation.getter(#canvas), - returnValue: _FakeCanvas_1( - this, - Invocation.getter(#canvas), - ), - ) as _i2.Canvas); + _i2.Canvas get canvas => + (super.noSuchMethod( + Invocation.getter(#canvas), + returnValue: _FakeCanvas_1(this, Invocation.getter(#canvas)), + ) + as _i2.Canvas); @override - void paintChild( - _i3.RenderObject? child, - _i2.Offset? offset, - ) => + void paintChild(_i3.RenderObject? child, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #paintChild, - [ - child, - offset, - ], - ), + Invocation.method(#paintChild, [child, offset]), returnValueForMissingStub: null, ); @override void appendLayer(_i4.Layer? layer) => super.noSuchMethod( - Invocation.method( - #appendLayer, - [layer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#appendLayer, [layer]), + returnValueForMissingStub: null, + ); @override _i2.VoidCallback addCompositionCallback(_i4.CompositionCallback? callback) => (super.noSuchMethod( - Invocation.method( - #addCompositionCallback, - [callback], - ), - returnValue: () {}, - ) as _i2.VoidCallback); + Invocation.method(#addCompositionCallback, [callback]), + returnValue: () {}, + ) + as _i2.VoidCallback); @override void stopRecordingIfNeeded() => super.noSuchMethod( - Invocation.method( - #stopRecordingIfNeeded, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#stopRecordingIfNeeded, []), + returnValueForMissingStub: null, + ); @override void setIsComplexHint() => super.noSuchMethod( - Invocation.method( - #setIsComplexHint, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#setIsComplexHint, []), + returnValueForMissingStub: null, + ); @override void setWillChangeHint() => super.noSuchMethod( - Invocation.method( - #setWillChangeHint, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#setWillChangeHint, []), + returnValueForMissingStub: null, + ); @override void addLayer(_i4.Layer? layer) => super.noSuchMethod( - Invocation.method( - #addLayer, - [layer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addLayer, [layer]), + returnValueForMissingStub: null, + ); @override void pushLayer( @@ -838,19 +513,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i3.PaintingContextCallback? painter, _i2.Offset? offset, { _i2.Rect? childPaintBounds, - }) => - super.noSuchMethod( - Invocation.method( - #pushLayer, - [ - childLayer, - painter, - offset, - ], - {#childPaintBounds: childPaintBounds}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #pushLayer, + [childLayer, painter, offset], + {#childPaintBounds: childPaintBounds}, + ), + returnValueForMissingStub: null, + ); @override _i3.PaintingContext createChildContext( @@ -858,24 +528,13 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Rect? bounds, ) => (super.noSuchMethod( - Invocation.method( - #createChildContext, - [ - childLayer, - bounds, - ], - ), - returnValue: _FakePaintingContext_2( - this, - Invocation.method( - #createChildContext, - [ - childLayer, - bounds, - ], - ), - ), - ) as _i3.PaintingContext); + Invocation.method(#createChildContext, [childLayer, bounds]), + returnValue: _FakePaintingContext_2( + this, + Invocation.method(#createChildContext, [childLayer, bounds]), + ), + ) + as _i3.PaintingContext); @override _i4.ClipRectLayer? pushClipRect( @@ -886,19 +545,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.hardEdge, _i4.ClipRectLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipRect, - [ - needsCompositing, - offset, - clipRect, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipRectLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipRect, + [needsCompositing, offset, clipRect, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipRectLayer?); @override _i4.ClipRRectLayer? pushClipRRect( @@ -910,20 +564,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.antiAlias, _i4.ClipRRectLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipRRect, - [ - needsCompositing, - offset, - bounds, - clipRRect, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipRRectLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipRRect, + [needsCompositing, offset, bounds, clipRRect, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipRRectLayer?); @override _i4.ClipPathLayer? pushClipPath( @@ -935,20 +583,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.antiAlias, _i4.ClipPathLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipPath, - [ - needsCompositing, - offset, - bounds, - clipPath, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipPathLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipPath, + [needsCompositing, offset, bounds, clipPath, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipPathLayer?); @override _i4.ColorFilterLayer pushColorFilter( @@ -958,28 +600,21 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i4.ColorFilterLayer? oldLayer, }) => (super.noSuchMethod( - Invocation.method( - #pushColorFilter, - [ - offset, - colorFilter, - painter, - ], - {#oldLayer: oldLayer}, - ), - returnValue: _FakeColorFilterLayer_3( - this, - Invocation.method( - #pushColorFilter, - [ - offset, - colorFilter, - painter, - ], - {#oldLayer: oldLayer}, - ), - ), - ) as _i4.ColorFilterLayer); + Invocation.method( + #pushColorFilter, + [offset, colorFilter, painter], + {#oldLayer: oldLayer}, + ), + returnValue: _FakeColorFilterLayer_3( + this, + Invocation.method( + #pushColorFilter, + [offset, colorFilter, painter], + {#oldLayer: oldLayer}, + ), + ), + ) + as _i4.ColorFilterLayer); @override _i4.TransformLayer? pushTransform( @@ -989,16 +624,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i3.PaintingContextCallback? painter, { _i4.TransformLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushTransform, - [ - needsCompositing, - offset, - transform, - painter, - ], - {#oldLayer: oldLayer}, - )) as _i4.TransformLayer?); + (super.noSuchMethod( + Invocation.method( + #pushTransform, + [needsCompositing, offset, transform, painter], + {#oldLayer: oldLayer}, + ), + ) + as _i4.TransformLayer?); @override _i4.OpacityLayer pushOpacity( @@ -1008,28 +641,21 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i4.OpacityLayer? oldLayer, }) => (super.noSuchMethod( - Invocation.method( - #pushOpacity, - [ - offset, - alpha, - painter, - ], - {#oldLayer: oldLayer}, - ), - returnValue: _FakeOpacityLayer_4( - this, - Invocation.method( - #pushOpacity, - [ - offset, - alpha, - painter, - ], - {#oldLayer: oldLayer}, - ), - ), - ) as _i4.OpacityLayer); + Invocation.method( + #pushOpacity, + [offset, alpha, painter], + {#oldLayer: oldLayer}, + ), + returnValue: _FakeOpacityLayer_4( + this, + Invocation.method( + #pushOpacity, + [offset, alpha, painter], + {#oldLayer: oldLayer}, + ), + ), + ) + as _i4.OpacityLayer); @override void clipPathAndPaint( @@ -1037,19 +663,10 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipPathAndPaint, - [ - path, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipPathAndPaint, [path, clipBehavior, bounds, painter]), + returnValueForMissingStub: null, + ); @override void clipRRectAndPaint( @@ -1057,19 +674,15 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipRRectAndPaint, - [ - rrect, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipRRectAndPaint, [ + rrect, + clipBehavior, + bounds, + painter, + ]), + returnValueForMissingStub: null, + ); @override void clipRectAndPaint( @@ -1077,19 +690,10 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipRectAndPaint, - [ - rect, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipRectAndPaint, [rect, clipBehavior, bounds, painter]), + returnValueForMissingStub: null, + ); } /// A class which mocks [BuildContext]. @@ -1101,25 +705,25 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { } @override - _i6.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_5( - this, - Invocation.getter(#widget), - ), - ) as _i6.Widget); + _i6.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_5(this, Invocation.getter(#widget)), + ) + as _i6.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i6.InheritedWidget dependOnInheritedElement( @@ -1127,47 +731,39 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_6( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i6.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_6( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i6.InheritedWidget); @override void visitAncestorElements(_i6.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i6.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i9.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -1177,20 +773,13 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { _i5.DiagnosticsTreeStyle? style = _i5.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i5.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i5.DiagnosticsNode); @override _i5.DiagnosticsNode describeWidget( @@ -1198,48 +787,36 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { _i5.DiagnosticsTreeStyle? style = _i5.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i5.DiagnosticsNode); - - @override - List<_i5.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i5.DiagnosticsNode); + + @override + List<_i5.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i5.DiagnosticsNode>[], - ) as List<_i5.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i5.DiagnosticsNode>[], + ) + as List<_i5.DiagnosticsNode>); @override _i5.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i5.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i5.DiagnosticsNode); } /// A class which mocks [LineChartPainter]. @@ -1255,52 +832,29 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i6.BuildContext? context, _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #paint, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#paint, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void clipToBorder( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #clipToBorder, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipToBorder, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawBarLine( _i11.CanvasWrapper? canvasWrapper, _i13.LineChartBarData? barData, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBarLine, - [ - canvasWrapper, - barData, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBarLine, [canvasWrapper, barData, holder]), + returnValueForMissingStub: null, + ); @override void drawBetweenBarsArea( @@ -1308,55 +862,53 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i13.LineChartData? data, _i13.BetweenBarsData? betweenBarsData, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBetweenBarsArea, - [ - canvasWrapper, - data, - betweenBarsData, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBetweenBarsArea, [ + canvasWrapper, + data, + betweenBarsData, + holder, + ]), + returnValueForMissingStub: null, + ); @override void drawDots( _i11.CanvasWrapper? canvasWrapper, _i13.LineChartBarData? barData, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawDots, - [ - canvasWrapper, - barData, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDots, [canvasWrapper, barData, holder]), + returnValueForMissingStub: null, + ); + + @override + void drawErrorIndicatorData( + _i11.CanvasWrapper? canvasWrapper, + _i13.LineChartBarData? barData, + _i12.PaintHolder<_i13.LineChartData>? holder, + ) => super.noSuchMethod( + Invocation.method(#drawErrorIndicatorData, [ + canvasWrapper, + barData, + holder, + ]), + returnValueForMissingStub: null, + ); @override void drawTouchedSpotsIndicator( _i11.CanvasWrapper? canvasWrapper, List<_i10.LineIndexDrawingInfo>? lineIndexDrawingInfo, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawTouchedSpotsIndicator, - [ - canvasWrapper, - lineIndexDrawingInfo, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawTouchedSpotsIndicator, [ + canvasWrapper, + lineIndexDrawingInfo, + holder, + ]), + returnValueForMissingStub: null, + ); @override _i2.Path generateBarPath( @@ -1367,30 +919,21 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? appendToPath, }) => (super.noSuchMethod( - Invocation.method( - #generateBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - returnValue: _FakePath_8( - this, - Invocation.method( - #generateBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - ), - ) as _i2.Path); + Invocation.method( + #generateBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + returnValue: _FakePath_8( + this, + Invocation.method( + #generateBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + ), + ) + as _i2.Path); @override _i2.Path generateNormalBarPath( @@ -1401,30 +944,21 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? appendToPath, }) => (super.noSuchMethod( - Invocation.method( - #generateNormalBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - returnValue: _FakePath_8( - this, - Invocation.method( - #generateNormalBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - ), - ) as _i2.Path); + Invocation.method( + #generateNormalBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + returnValue: _FakePath_8( + this, + Invocation.method( + #generateNormalBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + ), + ) + as _i2.Path); @override _i2.Path generateStepBarPath( @@ -1435,30 +969,21 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? appendToPath, }) => (super.noSuchMethod( - Invocation.method( - #generateStepBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - returnValue: _FakePath_8( - this, - Invocation.method( - #generateStepBarPath, - [ - viewSize, - barData, - barSpots, - holder, - ], - {#appendToPath: appendToPath}, - ), - ), - ) as _i2.Path); + Invocation.method( + #generateStepBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + returnValue: _FakePath_8( + this, + Invocation.method( + #generateStepBarPath, + [viewSize, barData, barSpots, holder], + {#appendToPath: appendToPath}, + ), + ), + ) + as _i2.Path); @override _i2.Path generateBelowBarPath( @@ -1470,32 +995,21 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { bool? fillCompletely = false, }) => (super.noSuchMethod( - Invocation.method( - #generateBelowBarPath, - [ - viewSize, - barData, - barPath, - barSpots, - holder, - ], - {#fillCompletely: fillCompletely}, - ), - returnValue: _FakePath_8( - this, - Invocation.method( - #generateBelowBarPath, - [ - viewSize, - barData, - barPath, - barSpots, - holder, - ], - {#fillCompletely: fillCompletely}, - ), - ), - ) as _i2.Path); + Invocation.method( + #generateBelowBarPath, + [viewSize, barData, barPath, barSpots, holder], + {#fillCompletely: fillCompletely}, + ), + returnValue: _FakePath_8( + this, + Invocation.method( + #generateBelowBarPath, + [viewSize, barData, barPath, barSpots, holder], + {#fillCompletely: fillCompletely}, + ), + ), + ) + as _i2.Path); @override _i2.Path generateAboveBarPath( @@ -1507,32 +1021,21 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { bool? fillCompletely = false, }) => (super.noSuchMethod( - Invocation.method( - #generateAboveBarPath, - [ - viewSize, - barData, - barPath, - barSpots, - holder, - ], - {#fillCompletely: fillCompletely}, - ), - returnValue: _FakePath_8( - this, - Invocation.method( - #generateAboveBarPath, - [ - viewSize, - barData, - barPath, - barSpots, - holder, - ], - {#fillCompletely: fillCompletely}, - ), - ), - ) as _i2.Path); + Invocation.method( + #generateAboveBarPath, + [viewSize, barData, barPath, barSpots, holder], + {#fillCompletely: fillCompletely}, + ), + returnValue: _FakePath_8( + this, + Invocation.method( + #generateAboveBarPath, + [viewSize, barData, barPath, barSpots, holder], + {#fillCompletely: fillCompletely}, + ), + ), + ) + as _i2.Path); @override void drawBelowBar( @@ -1541,20 +1044,16 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? filledAboveBarPath, _i12.PaintHolder<_i13.LineChartData>? holder, _i13.LineChartBarData? barData, - ) => - super.noSuchMethod( - Invocation.method( - #drawBelowBar, - [ - canvasWrapper, - belowBarPath, - filledAboveBarPath, - holder, - barData, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBelowBar, [ + canvasWrapper, + belowBarPath, + filledAboveBarPath, + holder, + barData, + ]), + returnValueForMissingStub: null, + ); @override void drawAboveBar( @@ -1563,20 +1062,16 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? filledBelowBarPath, _i12.PaintHolder<_i13.LineChartData>? holder, _i13.LineChartBarData? barData, - ) => - super.noSuchMethod( - Invocation.method( - #drawAboveBar, - [ - canvasWrapper, - aboveBarPath, - filledBelowBarPath, - holder, - barData, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAboveBar, [ + canvasWrapper, + aboveBarPath, + filledBelowBarPath, + holder, + barData, + ]), + returnValueForMissingStub: null, + ); @override void drawBetweenBar( @@ -1585,38 +1080,26 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i13.BetweenBarsData? betweenBarsData, _i2.Rect? aroundRect, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBetweenBar, - [ - canvasWrapper, - barPath, - betweenBarsData, - aroundRect, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBetweenBar, [ + canvasWrapper, + barPath, + betweenBarsData, + aroundRect, + holder, + ]), + returnValueForMissingStub: null, + ); @override void drawBarShadow( _i11.CanvasWrapper? canvasWrapper, _i2.Path? barPath, _i13.LineChartBarData? barData, - ) => - super.noSuchMethod( - Invocation.method( - #drawBarShadow, - [ - canvasWrapper, - barPath, - barData, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBarShadow, [canvasWrapper, barPath, barData]), + returnValueForMissingStub: null, + ); @override void drawBar( @@ -1624,19 +1107,10 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Path? barPath, _i13.LineChartBarData? barData, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBar, - [ - canvasWrapper, - barPath, - barData, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBar, [canvasWrapper, barPath, barData, holder]), + returnValueForMissingStub: null, + ); @override void drawTouchTooltip( @@ -1646,21 +1120,17 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i13.FlSpot? showOnSpot, _i13.ShowingTooltipIndicators? showingTooltipSpots, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawTouchTooltip, - [ - context, - canvasWrapper, - tooltipData, - showOnSpot, - showingTooltipSpots, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawTouchTooltip, [ + context, + canvasWrapper, + tooltipData, + showOnSpot, + showingTooltipSpots, + holder, + ]), + returnValueForMissingStub: null, + ); @override double getBarLineXLength( @@ -1669,16 +1139,14 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i12.PaintHolder<_i13.LineChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #getBarLineXLength, - [ - barData, - chartUsableSize, - holder, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getBarLineXLength, [ + barData, + chartUsableSize, + holder, + ]), + returnValue: 0.0, + ) + as double); @override List<_i13.TouchLineBarSpot>? handleTouch( @@ -1686,14 +1154,10 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i2.Size? size, _i12.PaintHolder<_i13.LineChartData>? holder, ) => - (super.noSuchMethod(Invocation.method( - #handleTouch, - [ - localPosition, - size, - holder, - ], - )) as List<_i13.TouchLineBarSpot>?); + (super.noSuchMethod( + Invocation.method(#handleTouch, [localPosition, size, holder]), + ) + as List<_i13.TouchLineBarSpot>?); @override _i13.TouchLineBarSpot? getNearestTouchedSpot( @@ -1703,82 +1167,53 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { int? barDataPosition, _i12.PaintHolder<_i13.LineChartData>? holder, ) => - (super.noSuchMethod(Invocation.method( - #getNearestTouchedSpot, - [ - viewSize, - touchedPoint, - barData, - barDataPosition, - holder, - ], - )) as _i13.TouchLineBarSpot?); + (super.noSuchMethod( + Invocation.method(#getNearestTouchedSpot, [ + viewSize, + touchedPoint, + barData, + barDataPosition, + holder, + ]), + ) + as _i13.TouchLineBarSpot?); @override void drawGrid( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawGrid, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawGrid, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawBackground( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBackground, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBackground, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawRangeAnnotation( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawRangeAnnotation, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRangeAnnotation, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawExtraLines( _i6.BuildContext? context, _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.LineChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawExtraLines, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawExtraLines, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawHorizontalLines( @@ -1786,19 +1221,15 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.LineChartData>? holder, _i2.Size? viewSize, - ) => - super.noSuchMethod( - Invocation.method( - #drawHorizontalLines, - [ - context, - canvasWrapper, - holder, - viewSize, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawHorizontalLines, [ + context, + canvasWrapper, + holder, + viewSize, + ]), + returnValueForMissingStub: null, + ); @override void drawVerticalLines( @@ -1806,19 +1237,15 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.LineChartData>? holder, _i2.Size? viewSize, - ) => - super.noSuchMethod( - Invocation.method( - #drawVerticalLines, - [ - context, - canvasWrapper, - holder, - viewSize, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVerticalLines, [ + context, + canvasWrapper, + holder, + viewSize, + ]), + returnValueForMissingStub: null, + ); @override double getPixelX( @@ -1827,16 +1254,10 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i12.PaintHolder<_i13.LineChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #getPixelX, - [ - spotX, - viewSize, - holder, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getPixelX, [spotX, viewSize, holder]), + returnValue: 0.0, + ) + as double); @override double getPixelY( @@ -1845,16 +1266,10 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { _i12.PaintHolder<_i13.LineChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #getPixelY, - [ - spotY, - viewSize, - holder, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getPixelY, [spotY, viewSize, holder]), + returnValue: 0.0, + ) + as double); @override double getTooltipLeft( @@ -1864,15 +1279,13 @@ class MockLineChartPainter extends _i1.Mock implements _i10.LineChartPainter { double? tooltipHorizontalOffset, ) => (super.noSuchMethod( - Invocation.method( - #getTooltipLeft, - [ - dx, - tooltipWidth, - tooltipHorizontalAlignment, - tooltipHorizontalOffset, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getTooltipLeft, [ + dx, + tooltipWidth, + tooltipHorizontalAlignment, + tooltipHorizontalOffset, + ]), + returnValue: 0.0, + ) + as double); } diff --git a/test/chart/pie_chart/pie_chart_painter_test.mocks.dart b/test/chart/pie_chart/pie_chart_painter_test.mocks.dart index 4cb06047c..c57c2f16f 100644 --- a/test/chart/pie_chart/pie_chart_painter_test.mocks.dart +++ b/test/chart/pie_chart/pie_chart_painter_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/chart/pie_chart/pie_chart_painter_test.dart. // Do not manually edit this file. @@ -22,49 +22,30 @@ import 'package:mockito/src/dummies.dart' as _i9; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { - _FakeRect_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCanvas_1 extends _i1.SmartFake implements _i2.Canvas { - _FakeCanvas_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCanvas_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSize_2 extends _i1.SmartFake implements _i2.Size { - _FakeSize_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSize_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWidget_3 extends _i1.SmartFake implements _i3.Widget { - _FakeWidget_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -73,13 +54,8 @@ class _FakeWidget_3 extends _i1.SmartFake implements _i3.Widget { class _FakeInheritedWidget_4 extends _i1.SmartFake implements _i3.InheritedWidget { - _FakeInheritedWidget_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -88,40 +64,24 @@ class _FakeInheritedWidget_4 extends _i1.SmartFake class _FakeDiagnosticsNode_5 extends _i1.SmartFake implements _i3.DiagnosticsNode { - _FakeDiagnosticsNode_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i4.TextTreeConfiguration? parentConfiguration, _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } class _FakeOffset_6 extends _i1.SmartFake implements _i2.Offset { - _FakeOffset_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOffset_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBorderSide_7 extends _i1.SmartFake implements _i3.BorderSide { - _FakeBorderSide_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBorderSide_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -129,13 +89,8 @@ class _FakeBorderSide_7 extends _i1.SmartFake implements _i3.BorderSide { } class _FakeTextStyle_8 extends _i1.SmartFake implements _i3.TextStyle { - _FakeTextStyle_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeTextStyle_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -152,331 +107,170 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void restoreToCount(int? count) => super.noSuchMethod( - Invocation.method( - #restoreToCount, - [count], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); @override - int getSaveCount() => (super.noSuchMethod( - Invocation.method( - #getSaveCount, - [], - ), - returnValue: 0, - ) as int); + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override - void scale( - double? sx, [ - double? sy, - ]) => - super.noSuchMethod( - Invocation.method( - #scale, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radians) => super.noSuchMethod( - Invocation.method( - #rotate, - [radians], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); @override - void skew( - double? sx, - double? sy, - ) => - super.noSuchMethod( - Invocation.method( - #skew, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); @override void transform(_i5.Float64List? matrix4) => super.noSuchMethod( - Invocation.method( - #transform, - [matrix4], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); @override - _i5.Float64List getTransform() => (super.noSuchMethod( - Invocation.method( - #getTransform, - [], - ), - returnValue: _i5.Float64List(0), - ) as _i5.Float64List); + _i5.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i5.Float64List(0), + ) + as _i5.Float64List); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void clipRRect( - _i2.RRect? rrect, { - bool? doAntiAlias = true, - }) => + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipRRect, - [rrect], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - _i2.Rect getLocalClipBounds() => (super.noSuchMethod( - Invocation.method( - #getLocalClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getLocalClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - _i2.Rect getDestinationClipBounds() => (super.noSuchMethod( - Invocation.method( - #getDestinationClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getDestinationClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - void drawColor( - _i2.Color? color, - _i2.BlendMode? blendMode, - ) => + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); + + @override + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); + + @override + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => super.noSuchMethod( - Invocation.method( - #drawColor, - [ - color, - blendMode, - ], - ), + Invocation.method(#drawColor, [color, blendMode]), returnValueForMissingStub: null, ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override void drawPaint(_i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawPaint, - [paint], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override - void drawDRRect( - _i2.RRect? outer, - _i2.RRect? inner, - _i2.Paint? paint, - ) => + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawDRRect, - [ - outer, - inner, - paint, - ], - ), + Invocation.method(#drawDRRect, [outer, inner, paint]), returnValueForMissingStub: null, ); @override - void drawOval( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawOval, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawCircle( - _i2.Offset? c, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - c, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [c, radius, paint]), returnValueForMissingStub: null, ); @@ -487,52 +281,27 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @@ -542,19 +311,10 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? src, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageRect, - [ - image, - src, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawImageNine( @@ -562,42 +322,21 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? center, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageNine, - [ - image, - center, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawParagraph( - _i2.Paragraph? paragraph, - _i2.Offset? offset, - ) => + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawParagraph, - [ - paragraph, - offset, - ], - ), + Invocation.method(#drawParagraph, [paragraph, offset]), returnValueForMissingStub: null, ); @@ -606,54 +345,30 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.PointMode? pointMode, List<_i2.Offset>? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawRawPoints( _i2.PointMode? pointMode, _i5.Float32List? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawVertices( _i2.Vertices? vertices, _i2.BlendMode? blendMode, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawVertices, - [ - vertices, - blendMode, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); @override void drawAtlas( @@ -664,22 +379,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawAtlas, - [ - atlas, - transforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawRawAtlas( @@ -690,22 +401,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawAtlas, - [ - atlas, - rstTransforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawShadow( @@ -713,19 +420,15 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Color? color, double? elevation, bool? transparentOccluder, - ) => - super.noSuchMethod( - Invocation.method( - #drawShadow, - [ - path, - color, - elevation, - transparentOccluder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); } /// A class which mocks [CanvasWrapper]. @@ -737,222 +440,114 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { } @override - _i2.Canvas get canvas => (super.noSuchMethod( - Invocation.getter(#canvas), - returnValue: _FakeCanvas_1( - this, - Invocation.getter(#canvas), - ), - ) as _i2.Canvas); + _i2.Canvas get canvas => + (super.noSuchMethod( + Invocation.getter(#canvas), + returnValue: _FakeCanvas_1(this, Invocation.getter(#canvas)), + ) + as _i2.Canvas); @override - _i2.Size get size => (super.noSuchMethod( - Invocation.getter(#size), - returnValue: _FakeSize_2( - this, - Invocation.getter(#size), - ), - ) as _i2.Size); + _i2.Size get size => + (super.noSuchMethod( + Invocation.getter(#size), + returnValue: _FakeSize_2(this, Invocation.getter(#size)), + ) + as _i2.Size); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radius) => super.noSuchMethod( - Invocation.method( - #rotate, - [radius], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radius]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override - void drawCircle( - _i2.Offset? center, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? center, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - center, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [center, radius, paint]), returnValueForMissingStub: null, ); @@ -963,52 +558,31 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawText( _i3.TextPainter? tp, _i2.Offset? offset, [ double? rotateAngle, - ]) => - super.noSuchMethod( - Invocation.method( - #drawText, - [ - tp, - offset, - rotateAngle, - ], - ), - returnValueForMissingStub: null, - ); + ]) => super.noSuchMethod( + Invocation.method(#drawText, [tp, offset, rotateAngle]), + returnValueForMissingStub: null, + ); @override - void drawVerticalText( - _i3.TextPainter? tp, - _i2.Offset? offset, - ) => + void drawVerticalText(_i3.TextPainter? tp, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawVerticalText, - [ - tp, - offset, - ], - ), + Invocation.method(#drawVerticalText, [tp, offset]), returnValueForMissingStub: null, ); @@ -1017,18 +591,28 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i7.FlDotPainter? painter, _i7.FlSpot? spot, _i2.Offset? offset, - ) => - super.noSuchMethod( - Invocation.method( - #drawDot, - [ - painter, - spot, - offset, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDot, [painter, spot, offset]), + returnValueForMissingStub: null, + ); + + @override + void drawErrorIndicator( + _i7.FlSpotErrorRangePainter? painter, + _i7.FlSpot? origin, + _i2.Offset? offset, + _i2.Rect? errorRelativeRect, + _i7.AxisChartData? axisData, + ) => super.noSuchMethod( + Invocation.method(#drawErrorIndicator, [ + painter, + origin, + offset, + errorRelativeRect, + axisData, + ]), + returnValueForMissingStub: null, + ); @override void drawRotated({ @@ -1037,21 +621,16 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i2.Offset? drawOffset = _i2.Offset.zero, required double? angle, required _i6.DrawCallback? drawCallback, - }) => - super.noSuchMethod( - Invocation.method( - #drawRotated, - [], - { - #size: size, - #rotationOffset: rotationOffset, - #drawOffset: drawOffset, - #angle: angle, - #drawCallback: drawCallback, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#drawRotated, [], { + #size: size, + #rotationOffset: rotationOffset, + #drawOffset: drawOffset, + #angle: angle, + #drawCallback: drawCallback, + }), + returnValueForMissingStub: null, + ); @override void drawDashedLine( @@ -1059,19 +638,10 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i2.Offset? to, _i2.Paint? painter, List? dashArray, - ) => - super.noSuchMethod( - Invocation.method( - #drawDashedLine, - [ - from, - to, - painter, - dashArray, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDashedLine, [from, to, painter, dashArray]), + returnValueForMissingStub: null, + ); } /// A class which mocks [BuildContext]. @@ -1083,25 +653,25 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { } @override - _i3.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_3( - this, - Invocation.getter(#widget), - ), - ) as _i3.Widget); + _i3.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_3(this, Invocation.getter(#widget)), + ) + as _i3.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i3.InheritedWidget dependOnInheritedElement( @@ -1109,47 +679,39 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_4( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i3.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_4( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i3.InheritedWidget); @override void visitAncestorElements(_i3.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i3.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i3.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -1159,20 +721,13 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); @override _i3.DiagnosticsNode describeWidget( @@ -1180,48 +735,36 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); - - @override - List<_i3.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); + + @override + List<_i3.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i3.DiagnosticsNode>[], - ) as List<_i3.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i3.DiagnosticsNode>[], + ) + as List<_i3.DiagnosticsNode>); @override _i3.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i3.DiagnosticsNode); } /// A class which mocks [Utils]. @@ -1233,91 +776,49 @@ class MockUtils extends _i1.Mock implements _i8.Utils { } @override - double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #radians, - [degrees], - ), - returnValue: 0.0, - ) as double); - - @override - double degrees(double? radians) => (super.noSuchMethod( - Invocation.method( - #degrees, - [radians], - ), - returnValue: 0.0, - ) as double); - - @override - _i2.Size getDefaultSize(_i2.Size? screenSize) => (super.noSuchMethod( - Invocation.method( - #getDefaultSize, - [screenSize], - ), - returnValue: _FakeSize_2( - this, - Invocation.method( - #getDefaultSize, - [screenSize], - ), - ), - ) as _i2.Size); - - @override - double translateRotatedPosition( - double? size, - double? degree, - ) => + double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #translateRotatedPosition, - [ - size, - degree, - ], - ), - returnValue: 0.0, - ) as double); - - @override - _i2.Offset calculateRotationOffset( - _i2.Size? size, - double? degree, - ) => + Invocation.method(#radians, [degrees]), + returnValue: 0.0, + ) + as double); + + @override + double degrees(double? radians) => + (super.noSuchMethod( + Invocation.method(#degrees, [radians]), + returnValue: 0.0, + ) + as double); + + @override + double translateRotatedPosition(double? size, double? degree) => + (super.noSuchMethod( + Invocation.method(#translateRotatedPosition, [size, degree]), + returnValue: 0.0, + ) + as double); + + @override + _i2.Offset calculateRotationOffset(_i2.Size? size, double? degree) => (super.noSuchMethod( - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - returnValue: _FakeOffset_6( - this, - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - ), - ) as _i2.Offset); + Invocation.method(#calculateRotationOffset, [size, degree]), + returnValue: _FakeOffset_6( + this, + Invocation.method(#calculateRotationOffset, [size, degree]), + ), + ) + as _i2.Offset); @override _i3.BorderRadius? normalizeBorderRadius( _i3.BorderRadius? borderRadius, double? width, ) => - (super.noSuchMethod(Invocation.method( - #normalizeBorderRadius, - [ - borderRadius, - width, - ], - )) as _i3.BorderRadius?); + (super.noSuchMethod( + Invocation.method(#normalizeBorderRadius, [borderRadius, width]), + ) + as _i3.BorderRadius?); @override _i3.BorderSide normalizeBorderSide( @@ -1325,24 +826,13 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? width, ) => (super.noSuchMethod( - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - returnValue: _FakeBorderSide_7( - this, - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - ), - ) as _i3.BorderSide); + Invocation.method(#normalizeBorderSide, [borderSide, width]), + returnValue: _FakeBorderSide_7( + this, + Invocation.method(#normalizeBorderSide, [borderSide, width]), + ), + ) + as _i3.BorderSide); @override double getEfficientInterval( @@ -1351,62 +841,41 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? pixelPerInterval = 40.0, }) => (super.noSuchMethod( - Invocation.method( - #getEfficientInterval, - [ - axisViewSize, - diffInAxis, - ], - {#pixelPerInterval: pixelPerInterval}, - ), - returnValue: 0.0, - ) as double); - - @override - double roundInterval(double? input) => (super.noSuchMethod( - Invocation.method( - #roundInterval, - [input], - ), - returnValue: 0.0, - ) as double); - - @override - int getFractionDigits(double? value) => (super.noSuchMethod( - Invocation.method( - #getFractionDigits, - [value], - ), - returnValue: 0, - ) as int); - - @override - String formatNumber( - double? axisMin, - double? axisMax, - double? axisValue, - ) => + Invocation.method( + #getEfficientInterval, + [axisViewSize, diffInAxis], + {#pixelPerInterval: pixelPerInterval}, + ), + returnValue: 0.0, + ) + as double); + + @override + double roundInterval(double? input) => + (super.noSuchMethod( + Invocation.method(#roundInterval, [input]), + returnValue: 0.0, + ) + as double); + + @override + int getFractionDigits(double? value) => + (super.noSuchMethod( + Invocation.method(#getFractionDigits, [value]), + returnValue: 0, + ) + as int); + + @override + String formatNumber(double? axisMin, double? axisMax, double? axisValue) => (super.noSuchMethod( - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - returnValue: _i9.dummyValue( - this, - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - ), - ) as String); + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + returnValue: _i9.dummyValue( + this, + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + ), + ) + as String); @override _i3.TextStyle getThemeAwareTextStyle( @@ -1414,24 +883,19 @@ class MockUtils extends _i1.Mock implements _i8.Utils { _i3.TextStyle? providedStyle, ) => (super.noSuchMethod( - Invocation.method( - #getThemeAwareTextStyle, - [ - context, - providedStyle, - ], - ), - returnValue: _FakeTextStyle_8( - this, - Invocation.method( - #getThemeAwareTextStyle, - [ + Invocation.method(#getThemeAwareTextStyle, [ context, providedStyle, - ], - ), - ), - ) as _i3.TextStyle); + ]), + returnValue: _FakeTextStyle_8( + this, + Invocation.method(#getThemeAwareTextStyle, [ + context, + providedStyle, + ]), + ), + ) + as _i3.TextStyle); @override double getBestInitialIntervalValue( @@ -1441,24 +905,20 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? baseline = 0.0, }) => (super.noSuchMethod( - Invocation.method( - #getBestInitialIntervalValue, - [ - min, - max, - interval, - ], - {#baseline: baseline}, - ), - returnValue: 0.0, - ) as double); - - @override - double convertRadiusToSigma(double? radius) => (super.noSuchMethod( - Invocation.method( - #convertRadiusToSigma, - [radius], - ), - returnValue: 0.0, - ) as double); + Invocation.method( + #getBestInitialIntervalValue, + [min, max, interval], + {#baseline: baseline}, + ), + returnValue: 0.0, + ) + as double); + + @override + double convertRadiusToSigma(double? radius) => + (super.noSuchMethod( + Invocation.method(#convertRadiusToSigma, [radius]), + returnValue: 0.0, + ) + as double); } diff --git a/test/chart/pie_chart/pie_chart_renderer_test.mocks.dart b/test/chart/pie_chart/pie_chart_renderer_test.mocks.dart index 72aff7d65..e08f28a89 100644 --- a/test/chart/pie_chart/pie_chart_renderer_test.mocks.dart +++ b/test/chart/pie_chart/pie_chart_renderer_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/chart/pie_chart/pie_chart_renderer_test.dart. // Do not manually edit this file. @@ -28,51 +28,32 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { - _FakeRect_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCanvas_1 extends _i1.SmartFake implements _i2.Canvas { - _FakeCanvas_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCanvas_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePaintingContext_2 extends _i1.SmartFake implements _i3.PaintingContext { - _FakePaintingContext_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePaintingContext_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeColorFilterLayer_3 extends _i1.SmartFake implements _i4.ColorFilterLayer { - _FakeColorFilterLayer_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeColorFilterLayer_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -80,13 +61,8 @@ class _FakeColorFilterLayer_3 extends _i1.SmartFake } class _FakeOpacityLayer_4 extends _i1.SmartFake implements _i4.OpacityLayer { - _FakeOpacityLayer_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOpacityLayer_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -94,13 +70,8 @@ class _FakeOpacityLayer_4 extends _i1.SmartFake implements _i4.OpacityLayer { } class _FakeWidget_5 extends _i1.SmartFake implements _i6.Widget { - _FakeWidget_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -109,13 +80,8 @@ class _FakeWidget_5 extends _i1.SmartFake implements _i6.Widget { class _FakeInheritedWidget_6 extends _i1.SmartFake implements _i6.InheritedWidget { - _FakeInheritedWidget_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -124,41 +90,25 @@ class _FakeInheritedWidget_6 extends _i1.SmartFake class _FakeDiagnosticsNode_7 extends _i1.SmartFake implements _i5.DiagnosticsNode { - _FakeDiagnosticsNode_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i5.TextTreeConfiguration? parentConfiguration, _i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } class _FakePath_8 extends _i1.SmartFake implements _i2.Path { - _FakePath_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePath_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePieTouchedSection_9 extends _i1.SmartFake implements _i7.PieTouchedSection { - _FakePieTouchedSection_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePieTouchedSection_9(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [Canvas]. @@ -171,331 +121,170 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void restoreToCount(int? count) => super.noSuchMethod( - Invocation.method( - #restoreToCount, - [count], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); @override - int getSaveCount() => (super.noSuchMethod( - Invocation.method( - #getSaveCount, - [], - ), - returnValue: 0, - ) as int); + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override - void scale( - double? sx, [ - double? sy, - ]) => - super.noSuchMethod( - Invocation.method( - #scale, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radians) => super.noSuchMethod( - Invocation.method( - #rotate, - [radians], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); @override - void skew( - double? sx, - double? sy, - ) => - super.noSuchMethod( - Invocation.method( - #skew, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); @override void transform(_i8.Float64List? matrix4) => super.noSuchMethod( - Invocation.method( - #transform, - [matrix4], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); @override - _i8.Float64List getTransform() => (super.noSuchMethod( - Invocation.method( - #getTransform, - [], - ), - returnValue: _i8.Float64List(0), - ) as _i8.Float64List); + _i8.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i8.Float64List(0), + ) + as _i8.Float64List); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void clipRRect( - _i2.RRect? rrect, { - bool? doAntiAlias = true, - }) => + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipRRect, - [rrect], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - _i2.Rect getLocalClipBounds() => (super.noSuchMethod( - Invocation.method( - #getLocalClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getLocalClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - _i2.Rect getDestinationClipBounds() => (super.noSuchMethod( - Invocation.method( - #getDestinationClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getDestinationClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - void drawColor( - _i2.Color? color, - _i2.BlendMode? blendMode, - ) => + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); + + @override + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); + + @override + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => super.noSuchMethod( - Invocation.method( - #drawColor, - [ - color, - blendMode, - ], - ), + Invocation.method(#drawColor, [color, blendMode]), returnValueForMissingStub: null, ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override void drawPaint(_i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawPaint, - [paint], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override - void drawDRRect( - _i2.RRect? outer, - _i2.RRect? inner, - _i2.Paint? paint, - ) => + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawDRRect, - [ - outer, - inner, - paint, - ], - ), + Invocation.method(#drawDRRect, [outer, inner, paint]), returnValueForMissingStub: null, ); @override - void drawOval( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawOval, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawCircle( - _i2.Offset? c, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - c, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [c, radius, paint]), returnValueForMissingStub: null, ); @@ -506,52 +295,27 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @@ -561,19 +325,10 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? src, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageRect, - [ - image, - src, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawImageNine( @@ -581,42 +336,21 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? center, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageNine, - [ - image, - center, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawParagraph( - _i2.Paragraph? paragraph, - _i2.Offset? offset, - ) => + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawParagraph, - [ - paragraph, - offset, - ], - ), + Invocation.method(#drawParagraph, [paragraph, offset]), returnValueForMissingStub: null, ); @@ -625,54 +359,30 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.PointMode? pointMode, List<_i2.Offset>? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawRawPoints( _i2.PointMode? pointMode, _i8.Float32List? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawVertices( _i2.Vertices? vertices, _i2.BlendMode? blendMode, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawVertices, - [ - vertices, - blendMode, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); @override void drawAtlas( @@ -683,22 +393,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawAtlas, - [ - atlas, - transforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawRawAtlas( @@ -709,22 +415,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawAtlas, - [ - atlas, - rstTransforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawShadow( @@ -732,19 +434,15 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Color? color, double? elevation, bool? transparentOccluder, - ) => - super.noSuchMethod( - Invocation.method( - #drawShadow, - [ - path, - color, - elevation, - transparentOccluder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); } /// A class which mocks [PaintingContext]. @@ -756,93 +454,65 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { } @override - _i2.Rect get estimatedBounds => (super.noSuchMethod( - Invocation.getter(#estimatedBounds), - returnValue: _FakeRect_0( - this, - Invocation.getter(#estimatedBounds), - ), - ) as _i2.Rect); + _i2.Rect get estimatedBounds => + (super.noSuchMethod( + Invocation.getter(#estimatedBounds), + returnValue: _FakeRect_0(this, Invocation.getter(#estimatedBounds)), + ) + as _i2.Rect); @override - _i2.Canvas get canvas => (super.noSuchMethod( - Invocation.getter(#canvas), - returnValue: _FakeCanvas_1( - this, - Invocation.getter(#canvas), - ), - ) as _i2.Canvas); + _i2.Canvas get canvas => + (super.noSuchMethod( + Invocation.getter(#canvas), + returnValue: _FakeCanvas_1(this, Invocation.getter(#canvas)), + ) + as _i2.Canvas); @override - void paintChild( - _i3.RenderObject? child, - _i2.Offset? offset, - ) => + void paintChild(_i3.RenderObject? child, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #paintChild, - [ - child, - offset, - ], - ), + Invocation.method(#paintChild, [child, offset]), returnValueForMissingStub: null, ); @override void appendLayer(_i4.Layer? layer) => super.noSuchMethod( - Invocation.method( - #appendLayer, - [layer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#appendLayer, [layer]), + returnValueForMissingStub: null, + ); @override _i2.VoidCallback addCompositionCallback(_i4.CompositionCallback? callback) => (super.noSuchMethod( - Invocation.method( - #addCompositionCallback, - [callback], - ), - returnValue: () {}, - ) as _i2.VoidCallback); + Invocation.method(#addCompositionCallback, [callback]), + returnValue: () {}, + ) + as _i2.VoidCallback); @override void stopRecordingIfNeeded() => super.noSuchMethod( - Invocation.method( - #stopRecordingIfNeeded, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#stopRecordingIfNeeded, []), + returnValueForMissingStub: null, + ); @override void setIsComplexHint() => super.noSuchMethod( - Invocation.method( - #setIsComplexHint, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#setIsComplexHint, []), + returnValueForMissingStub: null, + ); @override void setWillChangeHint() => super.noSuchMethod( - Invocation.method( - #setWillChangeHint, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#setWillChangeHint, []), + returnValueForMissingStub: null, + ); @override void addLayer(_i4.Layer? layer) => super.noSuchMethod( - Invocation.method( - #addLayer, - [layer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addLayer, [layer]), + returnValueForMissingStub: null, + ); @override void pushLayer( @@ -850,19 +520,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i3.PaintingContextCallback? painter, _i2.Offset? offset, { _i2.Rect? childPaintBounds, - }) => - super.noSuchMethod( - Invocation.method( - #pushLayer, - [ - childLayer, - painter, - offset, - ], - {#childPaintBounds: childPaintBounds}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #pushLayer, + [childLayer, painter, offset], + {#childPaintBounds: childPaintBounds}, + ), + returnValueForMissingStub: null, + ); @override _i3.PaintingContext createChildContext( @@ -870,24 +535,13 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Rect? bounds, ) => (super.noSuchMethod( - Invocation.method( - #createChildContext, - [ - childLayer, - bounds, - ], - ), - returnValue: _FakePaintingContext_2( - this, - Invocation.method( - #createChildContext, - [ - childLayer, - bounds, - ], - ), - ), - ) as _i3.PaintingContext); + Invocation.method(#createChildContext, [childLayer, bounds]), + returnValue: _FakePaintingContext_2( + this, + Invocation.method(#createChildContext, [childLayer, bounds]), + ), + ) + as _i3.PaintingContext); @override _i4.ClipRectLayer? pushClipRect( @@ -898,19 +552,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.hardEdge, _i4.ClipRectLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipRect, - [ - needsCompositing, - offset, - clipRect, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipRectLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipRect, + [needsCompositing, offset, clipRect, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipRectLayer?); @override _i4.ClipRRectLayer? pushClipRRect( @@ -922,20 +571,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.antiAlias, _i4.ClipRRectLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipRRect, - [ - needsCompositing, - offset, - bounds, - clipRRect, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipRRectLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipRRect, + [needsCompositing, offset, bounds, clipRRect, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipRRectLayer?); @override _i4.ClipPathLayer? pushClipPath( @@ -947,20 +590,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.antiAlias, _i4.ClipPathLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipPath, - [ - needsCompositing, - offset, - bounds, - clipPath, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipPathLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipPath, + [needsCompositing, offset, bounds, clipPath, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipPathLayer?); @override _i4.ColorFilterLayer pushColorFilter( @@ -970,28 +607,21 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i4.ColorFilterLayer? oldLayer, }) => (super.noSuchMethod( - Invocation.method( - #pushColorFilter, - [ - offset, - colorFilter, - painter, - ], - {#oldLayer: oldLayer}, - ), - returnValue: _FakeColorFilterLayer_3( - this, - Invocation.method( - #pushColorFilter, - [ - offset, - colorFilter, - painter, - ], - {#oldLayer: oldLayer}, - ), - ), - ) as _i4.ColorFilterLayer); + Invocation.method( + #pushColorFilter, + [offset, colorFilter, painter], + {#oldLayer: oldLayer}, + ), + returnValue: _FakeColorFilterLayer_3( + this, + Invocation.method( + #pushColorFilter, + [offset, colorFilter, painter], + {#oldLayer: oldLayer}, + ), + ), + ) + as _i4.ColorFilterLayer); @override _i4.TransformLayer? pushTransform( @@ -1001,16 +631,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i3.PaintingContextCallback? painter, { _i4.TransformLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushTransform, - [ - needsCompositing, - offset, - transform, - painter, - ], - {#oldLayer: oldLayer}, - )) as _i4.TransformLayer?); + (super.noSuchMethod( + Invocation.method( + #pushTransform, + [needsCompositing, offset, transform, painter], + {#oldLayer: oldLayer}, + ), + ) + as _i4.TransformLayer?); @override _i4.OpacityLayer pushOpacity( @@ -1020,28 +648,21 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i4.OpacityLayer? oldLayer, }) => (super.noSuchMethod( - Invocation.method( - #pushOpacity, - [ - offset, - alpha, - painter, - ], - {#oldLayer: oldLayer}, - ), - returnValue: _FakeOpacityLayer_4( - this, - Invocation.method( - #pushOpacity, - [ - offset, - alpha, - painter, - ], - {#oldLayer: oldLayer}, - ), - ), - ) as _i4.OpacityLayer); + Invocation.method( + #pushOpacity, + [offset, alpha, painter], + {#oldLayer: oldLayer}, + ), + returnValue: _FakeOpacityLayer_4( + this, + Invocation.method( + #pushOpacity, + [offset, alpha, painter], + {#oldLayer: oldLayer}, + ), + ), + ) + as _i4.OpacityLayer); @override void clipPathAndPaint( @@ -1049,19 +670,10 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipPathAndPaint, - [ - path, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipPathAndPaint, [path, clipBehavior, bounds, painter]), + returnValueForMissingStub: null, + ); @override void clipRRectAndPaint( @@ -1069,19 +681,15 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipRRectAndPaint, - [ - rrect, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipRRectAndPaint, [ + rrect, + clipBehavior, + bounds, + painter, + ]), + returnValueForMissingStub: null, + ); @override void clipRectAndPaint( @@ -1089,19 +697,10 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipRectAndPaint, - [ - rect, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipRectAndPaint, [rect, clipBehavior, bounds, painter]), + returnValueForMissingStub: null, + ); } /// A class which mocks [BuildContext]. @@ -1113,25 +712,25 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { } @override - _i6.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_5( - this, - Invocation.getter(#widget), - ), - ) as _i6.Widget); + _i6.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_5(this, Invocation.getter(#widget)), + ) + as _i6.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i6.InheritedWidget dependOnInheritedElement( @@ -1139,47 +738,39 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_6( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i6.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_6( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i6.InheritedWidget); @override void visitAncestorElements(_i6.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i6.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i10.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -1189,20 +780,13 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { _i5.DiagnosticsTreeStyle? style = _i5.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i5.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i5.DiagnosticsNode); @override _i5.DiagnosticsNode describeWidget( @@ -1210,48 +794,36 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { _i5.DiagnosticsTreeStyle? style = _i5.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i5.DiagnosticsNode); - - @override - List<_i5.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i5.DiagnosticsNode); + + @override + List<_i5.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i5.DiagnosticsNode>[], - ) as List<_i5.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i5.DiagnosticsNode>[], + ) + as List<_i5.DiagnosticsNode>); @override _i5.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i5.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i5.DiagnosticsNode); } /// A class which mocks [PieChartPainter]. @@ -1267,18 +839,10 @@ class MockPieChartPainter extends _i1.Mock implements _i11.PieChartPainter { _i6.BuildContext? context, _i12.CanvasWrapper? canvasWrapper, _i13.PaintHolder<_i7.PieChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #paint, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#paint, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override List calculateSectionsAngle( @@ -1286,33 +850,20 @@ class MockPieChartPainter extends _i1.Mock implements _i11.PieChartPainter { double? sumValue, ) => (super.noSuchMethod( - Invocation.method( - #calculateSectionsAngle, - [ - sections, - sumValue, - ], - ), - returnValue: [], - ) as List); + Invocation.method(#calculateSectionsAngle, [sections, sumValue]), + returnValue: [], + ) + as List); @override void drawCenterSpace( _i12.CanvasWrapper? canvasWrapper, double? centerRadius, _i13.PaintHolder<_i7.PieChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawCenterSpace, - [ - canvasWrapper, - centerRadius, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawCenterSpace, [canvasWrapper, centerRadius, holder]), + returnValueForMissingStub: null, + ); @override void drawSections( @@ -1320,19 +871,15 @@ class MockPieChartPainter extends _i1.Mock implements _i11.PieChartPainter { List? sectionsAngle, double? centerRadius, _i13.PaintHolder<_i7.PieChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawSections, - [ - canvasWrapper, - sectionsAngle, - centerRadius, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawSections, [ + canvasWrapper, + sectionsAngle, + centerRadius, + holder, + ]), + returnValueForMissingStub: null, + ); @override _i2.Path generateSectionPath( @@ -1344,75 +891,48 @@ class MockPieChartPainter extends _i1.Mock implements _i11.PieChartPainter { double? centerRadius, ) => (super.noSuchMethod( - Invocation.method( - #generateSectionPath, - [ - section, - sectionSpace, - tempAngle, - sectionDegree, - center, - centerRadius, - ], - ), - returnValue: _FakePath_8( - this, - Invocation.method( - #generateSectionPath, - [ + Invocation.method(#generateSectionPath, [ section, sectionSpace, tempAngle, sectionDegree, center, centerRadius, - ], - ), - ), - ) as _i2.Path); - - @override - _i2.Path createRectPathAroundLine( - _i14.Line? line, - double? width, - ) => + ]), + returnValue: _FakePath_8( + this, + Invocation.method(#generateSectionPath, [ + section, + sectionSpace, + tempAngle, + sectionDegree, + center, + centerRadius, + ]), + ), + ) + as _i2.Path); + + @override + _i2.Path createRectPathAroundLine(_i14.Line? line, double? width) => (super.noSuchMethod( - Invocation.method( - #createRectPathAroundLine, - [ - line, - width, - ], - ), - returnValue: _FakePath_8( - this, - Invocation.method( - #createRectPathAroundLine, - [ - line, - width, - ], - ), - ), - ) as _i2.Path); + Invocation.method(#createRectPathAroundLine, [line, width]), + returnValue: _FakePath_8( + this, + Invocation.method(#createRectPathAroundLine, [line, width]), + ), + ) + as _i2.Path); @override void drawSection( _i7.PieChartSectionData? section, _i2.Path? sectionPath, _i12.CanvasWrapper? canvasWrapper, - ) => - super.noSuchMethod( - Invocation.method( - #drawSection, - [ - section, - sectionPath, - canvasWrapper, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawSection, [section, sectionPath, canvasWrapper]), + returnValueForMissingStub: null, + ); @override void drawSectionStroke( @@ -1420,19 +940,15 @@ class MockPieChartPainter extends _i1.Mock implements _i11.PieChartPainter { _i2.Path? sectionPath, _i12.CanvasWrapper? canvasWrapper, _i2.Size? viewSize, - ) => - super.noSuchMethod( - Invocation.method( - #drawSectionStroke, - [ - section, - sectionPath, - canvasWrapper, - viewSize, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawSectionStroke, [ + section, + sectionPath, + canvasWrapper, + viewSize, + ]), + returnValueForMissingStub: null, + ); @override void drawTexts( @@ -1440,19 +956,15 @@ class MockPieChartPainter extends _i1.Mock implements _i11.PieChartPainter { _i12.CanvasWrapper? canvasWrapper, _i13.PaintHolder<_i7.PieChartData>? holder, double? centerRadius, - ) => - super.noSuchMethod( - Invocation.method( - #drawTexts, - [ - context, - canvasWrapper, - holder, - centerRadius, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawTexts, [ + context, + canvasWrapper, + holder, + centerRadius, + ]), + returnValueForMissingStub: null, + ); @override double calculateCenterRadius( @@ -1460,15 +972,10 @@ class MockPieChartPainter extends _i1.Mock implements _i11.PieChartPainter { _i13.PaintHolder<_i7.PieChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #calculateCenterRadius, - [ - viewSize, - holder, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#calculateCenterRadius, [viewSize, holder]), + returnValue: 0.0, + ) + as double); @override _i7.PieTouchedSection handleTouch( @@ -1477,26 +984,17 @@ class MockPieChartPainter extends _i1.Mock implements _i11.PieChartPainter { _i13.PaintHolder<_i7.PieChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #handleTouch, - [ - localPosition, - viewSize, - holder, - ], - ), - returnValue: _FakePieTouchedSection_9( - this, - Invocation.method( - #handleTouch, - [ - localPosition, - viewSize, - holder, - ], - ), - ), - ) as _i7.PieTouchedSection); + Invocation.method(#handleTouch, [localPosition, viewSize, holder]), + returnValue: _FakePieTouchedSection_9( + this, + Invocation.method(#handleTouch, [ + localPosition, + viewSize, + holder, + ]), + ), + ) + as _i7.PieTouchedSection); @override Map getBadgeOffsets( @@ -1504,13 +1002,8 @@ class MockPieChartPainter extends _i1.Mock implements _i11.PieChartPainter { _i13.PaintHolder<_i7.PieChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #getBadgeOffsets, - [ - viewSize, - holder, - ], - ), - returnValue: {}, - ) as Map); + Invocation.method(#getBadgeOffsets, [viewSize, holder]), + returnValue: {}, + ) + as Map); } diff --git a/test/chart/radar_chart/radar_chart_painter_test.mocks.dart b/test/chart/radar_chart/radar_chart_painter_test.mocks.dart index a7f89b688..06dd2ff14 100644 --- a/test/chart/radar_chart/radar_chart_painter_test.mocks.dart +++ b/test/chart/radar_chart/radar_chart_painter_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/chart/radar_chart/radar_chart_painter_test.dart. // Do not manually edit this file. @@ -22,49 +22,30 @@ import 'package:mockito/src/dummies.dart' as _i9; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { - _FakeRect_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCanvas_1 extends _i1.SmartFake implements _i2.Canvas { - _FakeCanvas_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCanvas_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSize_2 extends _i1.SmartFake implements _i2.Size { - _FakeSize_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSize_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWidget_3 extends _i1.SmartFake implements _i3.Widget { - _FakeWidget_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -73,13 +54,8 @@ class _FakeWidget_3 extends _i1.SmartFake implements _i3.Widget { class _FakeInheritedWidget_4 extends _i1.SmartFake implements _i3.InheritedWidget { - _FakeInheritedWidget_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -88,40 +64,24 @@ class _FakeInheritedWidget_4 extends _i1.SmartFake class _FakeDiagnosticsNode_5 extends _i1.SmartFake implements _i3.DiagnosticsNode { - _FakeDiagnosticsNode_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i4.TextTreeConfiguration? parentConfiguration, _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } class _FakeOffset_6 extends _i1.SmartFake implements _i2.Offset { - _FakeOffset_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOffset_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBorderSide_7 extends _i1.SmartFake implements _i3.BorderSide { - _FakeBorderSide_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBorderSide_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -129,13 +89,8 @@ class _FakeBorderSide_7 extends _i1.SmartFake implements _i3.BorderSide { } class _FakeTextStyle_8 extends _i1.SmartFake implements _i3.TextStyle { - _FakeTextStyle_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeTextStyle_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -152,331 +107,170 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void restoreToCount(int? count) => super.noSuchMethod( - Invocation.method( - #restoreToCount, - [count], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); @override - int getSaveCount() => (super.noSuchMethod( - Invocation.method( - #getSaveCount, - [], - ), - returnValue: 0, - ) as int); + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override - void scale( - double? sx, [ - double? sy, - ]) => - super.noSuchMethod( - Invocation.method( - #scale, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radians) => super.noSuchMethod( - Invocation.method( - #rotate, - [radians], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); @override - void skew( - double? sx, - double? sy, - ) => - super.noSuchMethod( - Invocation.method( - #skew, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); @override void transform(_i5.Float64List? matrix4) => super.noSuchMethod( - Invocation.method( - #transform, - [matrix4], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); @override - _i5.Float64List getTransform() => (super.noSuchMethod( - Invocation.method( - #getTransform, - [], - ), - returnValue: _i5.Float64List(0), - ) as _i5.Float64List); + _i5.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i5.Float64List(0), + ) + as _i5.Float64List); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void clipRRect( - _i2.RRect? rrect, { - bool? doAntiAlias = true, - }) => + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipRRect, - [rrect], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - _i2.Rect getLocalClipBounds() => (super.noSuchMethod( - Invocation.method( - #getLocalClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getLocalClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - _i2.Rect getDestinationClipBounds() => (super.noSuchMethod( - Invocation.method( - #getDestinationClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getDestinationClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - void drawColor( - _i2.Color? color, - _i2.BlendMode? blendMode, - ) => + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); + + @override + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); + + @override + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => super.noSuchMethod( - Invocation.method( - #drawColor, - [ - color, - blendMode, - ], - ), + Invocation.method(#drawColor, [color, blendMode]), returnValueForMissingStub: null, ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override void drawPaint(_i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawPaint, - [paint], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override - void drawDRRect( - _i2.RRect? outer, - _i2.RRect? inner, - _i2.Paint? paint, - ) => + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawDRRect, - [ - outer, - inner, - paint, - ], - ), + Invocation.method(#drawDRRect, [outer, inner, paint]), returnValueForMissingStub: null, ); @override - void drawOval( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawOval, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawCircle( - _i2.Offset? c, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - c, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [c, radius, paint]), returnValueForMissingStub: null, ); @@ -487,52 +281,27 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @@ -542,19 +311,10 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? src, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageRect, - [ - image, - src, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawImageNine( @@ -562,42 +322,21 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? center, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageNine, - [ - image, - center, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawParagraph( - _i2.Paragraph? paragraph, - _i2.Offset? offset, - ) => + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawParagraph, - [ - paragraph, - offset, - ], - ), + Invocation.method(#drawParagraph, [paragraph, offset]), returnValueForMissingStub: null, ); @@ -606,54 +345,30 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.PointMode? pointMode, List<_i2.Offset>? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawRawPoints( _i2.PointMode? pointMode, _i5.Float32List? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawVertices( _i2.Vertices? vertices, _i2.BlendMode? blendMode, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawVertices, - [ - vertices, - blendMode, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); @override void drawAtlas( @@ -664,22 +379,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawAtlas, - [ - atlas, - transforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawRawAtlas( @@ -690,22 +401,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawAtlas, - [ - atlas, - rstTransforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawShadow( @@ -713,19 +420,15 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Color? color, double? elevation, bool? transparentOccluder, - ) => - super.noSuchMethod( - Invocation.method( - #drawShadow, - [ - path, - color, - elevation, - transparentOccluder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); } /// A class which mocks [CanvasWrapper]. @@ -737,222 +440,114 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { } @override - _i2.Canvas get canvas => (super.noSuchMethod( - Invocation.getter(#canvas), - returnValue: _FakeCanvas_1( - this, - Invocation.getter(#canvas), - ), - ) as _i2.Canvas); + _i2.Canvas get canvas => + (super.noSuchMethod( + Invocation.getter(#canvas), + returnValue: _FakeCanvas_1(this, Invocation.getter(#canvas)), + ) + as _i2.Canvas); @override - _i2.Size get size => (super.noSuchMethod( - Invocation.getter(#size), - returnValue: _FakeSize_2( - this, - Invocation.getter(#size), - ), - ) as _i2.Size); + _i2.Size get size => + (super.noSuchMethod( + Invocation.getter(#size), + returnValue: _FakeSize_2(this, Invocation.getter(#size)), + ) + as _i2.Size); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radius) => super.noSuchMethod( - Invocation.method( - #rotate, - [radius], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radius]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override - void drawCircle( - _i2.Offset? center, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? center, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - center, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [center, radius, paint]), returnValueForMissingStub: null, ); @@ -963,52 +558,31 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawText( _i3.TextPainter? tp, _i2.Offset? offset, [ double? rotateAngle, - ]) => - super.noSuchMethod( - Invocation.method( - #drawText, - [ - tp, - offset, - rotateAngle, - ], - ), - returnValueForMissingStub: null, - ); + ]) => super.noSuchMethod( + Invocation.method(#drawText, [tp, offset, rotateAngle]), + returnValueForMissingStub: null, + ); @override - void drawVerticalText( - _i3.TextPainter? tp, - _i2.Offset? offset, - ) => + void drawVerticalText(_i3.TextPainter? tp, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawVerticalText, - [ - tp, - offset, - ], - ), + Invocation.method(#drawVerticalText, [tp, offset]), returnValueForMissingStub: null, ); @@ -1017,18 +591,28 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i7.FlDotPainter? painter, _i7.FlSpot? spot, _i2.Offset? offset, - ) => - super.noSuchMethod( - Invocation.method( - #drawDot, - [ - painter, - spot, - offset, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDot, [painter, spot, offset]), + returnValueForMissingStub: null, + ); + + @override + void drawErrorIndicator( + _i7.FlSpotErrorRangePainter? painter, + _i7.FlSpot? origin, + _i2.Offset? offset, + _i2.Rect? errorRelativeRect, + _i7.AxisChartData? axisData, + ) => super.noSuchMethod( + Invocation.method(#drawErrorIndicator, [ + painter, + origin, + offset, + errorRelativeRect, + axisData, + ]), + returnValueForMissingStub: null, + ); @override void drawRotated({ @@ -1037,21 +621,16 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i2.Offset? drawOffset = _i2.Offset.zero, required double? angle, required _i6.DrawCallback? drawCallback, - }) => - super.noSuchMethod( - Invocation.method( - #drawRotated, - [], - { - #size: size, - #rotationOffset: rotationOffset, - #drawOffset: drawOffset, - #angle: angle, - #drawCallback: drawCallback, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#drawRotated, [], { + #size: size, + #rotationOffset: rotationOffset, + #drawOffset: drawOffset, + #angle: angle, + #drawCallback: drawCallback, + }), + returnValueForMissingStub: null, + ); @override void drawDashedLine( @@ -1059,19 +638,10 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i2.Offset? to, _i2.Paint? painter, List? dashArray, - ) => - super.noSuchMethod( - Invocation.method( - #drawDashedLine, - [ - from, - to, - painter, - dashArray, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDashedLine, [from, to, painter, dashArray]), + returnValueForMissingStub: null, + ); } /// A class which mocks [BuildContext]. @@ -1083,25 +653,25 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { } @override - _i3.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_3( - this, - Invocation.getter(#widget), - ), - ) as _i3.Widget); + _i3.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_3(this, Invocation.getter(#widget)), + ) + as _i3.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i3.InheritedWidget dependOnInheritedElement( @@ -1109,47 +679,39 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_4( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i3.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_4( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i3.InheritedWidget); @override void visitAncestorElements(_i3.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i3.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i3.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -1159,20 +721,13 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); @override _i3.DiagnosticsNode describeWidget( @@ -1180,48 +735,36 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); - - @override - List<_i3.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); + + @override + List<_i3.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i3.DiagnosticsNode>[], - ) as List<_i3.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i3.DiagnosticsNode>[], + ) + as List<_i3.DiagnosticsNode>); @override _i3.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i3.DiagnosticsNode); } /// A class which mocks [Utils]. @@ -1233,91 +776,49 @@ class MockUtils extends _i1.Mock implements _i8.Utils { } @override - double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #radians, - [degrees], - ), - returnValue: 0.0, - ) as double); - - @override - double degrees(double? radians) => (super.noSuchMethod( - Invocation.method( - #degrees, - [radians], - ), - returnValue: 0.0, - ) as double); - - @override - _i2.Size getDefaultSize(_i2.Size? screenSize) => (super.noSuchMethod( - Invocation.method( - #getDefaultSize, - [screenSize], - ), - returnValue: _FakeSize_2( - this, - Invocation.method( - #getDefaultSize, - [screenSize], - ), - ), - ) as _i2.Size); - - @override - double translateRotatedPosition( - double? size, - double? degree, - ) => + double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #translateRotatedPosition, - [ - size, - degree, - ], - ), - returnValue: 0.0, - ) as double); - - @override - _i2.Offset calculateRotationOffset( - _i2.Size? size, - double? degree, - ) => + Invocation.method(#radians, [degrees]), + returnValue: 0.0, + ) + as double); + + @override + double degrees(double? radians) => + (super.noSuchMethod( + Invocation.method(#degrees, [radians]), + returnValue: 0.0, + ) + as double); + + @override + double translateRotatedPosition(double? size, double? degree) => + (super.noSuchMethod( + Invocation.method(#translateRotatedPosition, [size, degree]), + returnValue: 0.0, + ) + as double); + + @override + _i2.Offset calculateRotationOffset(_i2.Size? size, double? degree) => (super.noSuchMethod( - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - returnValue: _FakeOffset_6( - this, - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - ), - ) as _i2.Offset); + Invocation.method(#calculateRotationOffset, [size, degree]), + returnValue: _FakeOffset_6( + this, + Invocation.method(#calculateRotationOffset, [size, degree]), + ), + ) + as _i2.Offset); @override _i3.BorderRadius? normalizeBorderRadius( _i3.BorderRadius? borderRadius, double? width, ) => - (super.noSuchMethod(Invocation.method( - #normalizeBorderRadius, - [ - borderRadius, - width, - ], - )) as _i3.BorderRadius?); + (super.noSuchMethod( + Invocation.method(#normalizeBorderRadius, [borderRadius, width]), + ) + as _i3.BorderRadius?); @override _i3.BorderSide normalizeBorderSide( @@ -1325,24 +826,13 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? width, ) => (super.noSuchMethod( - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - returnValue: _FakeBorderSide_7( - this, - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - ), - ) as _i3.BorderSide); + Invocation.method(#normalizeBorderSide, [borderSide, width]), + returnValue: _FakeBorderSide_7( + this, + Invocation.method(#normalizeBorderSide, [borderSide, width]), + ), + ) + as _i3.BorderSide); @override double getEfficientInterval( @@ -1351,62 +841,41 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? pixelPerInterval = 40.0, }) => (super.noSuchMethod( - Invocation.method( - #getEfficientInterval, - [ - axisViewSize, - diffInAxis, - ], - {#pixelPerInterval: pixelPerInterval}, - ), - returnValue: 0.0, - ) as double); - - @override - double roundInterval(double? input) => (super.noSuchMethod( - Invocation.method( - #roundInterval, - [input], - ), - returnValue: 0.0, - ) as double); - - @override - int getFractionDigits(double? value) => (super.noSuchMethod( - Invocation.method( - #getFractionDigits, - [value], - ), - returnValue: 0, - ) as int); - - @override - String formatNumber( - double? axisMin, - double? axisMax, - double? axisValue, - ) => + Invocation.method( + #getEfficientInterval, + [axisViewSize, diffInAxis], + {#pixelPerInterval: pixelPerInterval}, + ), + returnValue: 0.0, + ) + as double); + + @override + double roundInterval(double? input) => + (super.noSuchMethod( + Invocation.method(#roundInterval, [input]), + returnValue: 0.0, + ) + as double); + + @override + int getFractionDigits(double? value) => + (super.noSuchMethod( + Invocation.method(#getFractionDigits, [value]), + returnValue: 0, + ) + as int); + + @override + String formatNumber(double? axisMin, double? axisMax, double? axisValue) => (super.noSuchMethod( - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - returnValue: _i9.dummyValue( - this, - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - ), - ) as String); + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + returnValue: _i9.dummyValue( + this, + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + ), + ) + as String); @override _i3.TextStyle getThemeAwareTextStyle( @@ -1414,24 +883,19 @@ class MockUtils extends _i1.Mock implements _i8.Utils { _i3.TextStyle? providedStyle, ) => (super.noSuchMethod( - Invocation.method( - #getThemeAwareTextStyle, - [ - context, - providedStyle, - ], - ), - returnValue: _FakeTextStyle_8( - this, - Invocation.method( - #getThemeAwareTextStyle, - [ + Invocation.method(#getThemeAwareTextStyle, [ context, providedStyle, - ], - ), - ), - ) as _i3.TextStyle); + ]), + returnValue: _FakeTextStyle_8( + this, + Invocation.method(#getThemeAwareTextStyle, [ + context, + providedStyle, + ]), + ), + ) + as _i3.TextStyle); @override double getBestInitialIntervalValue( @@ -1441,24 +905,20 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? baseline = 0.0, }) => (super.noSuchMethod( - Invocation.method( - #getBestInitialIntervalValue, - [ - min, - max, - interval, - ], - {#baseline: baseline}, - ), - returnValue: 0.0, - ) as double); - - @override - double convertRadiusToSigma(double? radius) => (super.noSuchMethod( - Invocation.method( - #convertRadiusToSigma, - [radius], - ), - returnValue: 0.0, - ) as double); + Invocation.method( + #getBestInitialIntervalValue, + [min, max, interval], + {#baseline: baseline}, + ), + returnValue: 0.0, + ) + as double); + + @override + double convertRadiusToSigma(double? radius) => + (super.noSuchMethod( + Invocation.method(#convertRadiusToSigma, [radius]), + returnValue: 0.0, + ) + as double); } diff --git a/test/chart/radar_chart/radar_chart_renderer_test.mocks.dart b/test/chart/radar_chart/radar_chart_renderer_test.mocks.dart index d79d0a49d..a201f4c8e 100644 --- a/test/chart/radar_chart/radar_chart_renderer_test.mocks.dart +++ b/test/chart/radar_chart/radar_chart_renderer_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/chart/radar_chart/radar_chart_renderer_test.dart. // Do not manually edit this file. @@ -28,51 +28,32 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { - _FakeRect_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCanvas_1 extends _i1.SmartFake implements _i2.Canvas { - _FakeCanvas_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCanvas_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePaintingContext_2 extends _i1.SmartFake implements _i3.PaintingContext { - _FakePaintingContext_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePaintingContext_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeColorFilterLayer_3 extends _i1.SmartFake implements _i4.ColorFilterLayer { - _FakeColorFilterLayer_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeColorFilterLayer_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -80,13 +61,8 @@ class _FakeColorFilterLayer_3 extends _i1.SmartFake } class _FakeOpacityLayer_4 extends _i1.SmartFake implements _i4.OpacityLayer { - _FakeOpacityLayer_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOpacityLayer_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -94,13 +70,8 @@ class _FakeOpacityLayer_4 extends _i1.SmartFake implements _i4.OpacityLayer { } class _FakeWidget_5 extends _i1.SmartFake implements _i6.Widget { - _FakeWidget_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -109,13 +80,8 @@ class _FakeWidget_5 extends _i1.SmartFake implements _i6.Widget { class _FakeInheritedWidget_6 extends _i1.SmartFake implements _i6.InheritedWidget { - _FakeInheritedWidget_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -124,20 +90,14 @@ class _FakeInheritedWidget_6 extends _i1.SmartFake class _FakeDiagnosticsNode_7 extends _i1.SmartFake implements _i5.DiagnosticsNode { - _FakeDiagnosticsNode_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i5.TextTreeConfiguration? parentConfiguration, _i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } /// A class which mocks [Canvas]. @@ -150,331 +110,170 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void restoreToCount(int? count) => super.noSuchMethod( - Invocation.method( - #restoreToCount, - [count], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); @override - int getSaveCount() => (super.noSuchMethod( - Invocation.method( - #getSaveCount, - [], - ), - returnValue: 0, - ) as int); + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override - void scale( - double? sx, [ - double? sy, - ]) => - super.noSuchMethod( - Invocation.method( - #scale, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radians) => super.noSuchMethod( - Invocation.method( - #rotate, - [radians], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); @override - void skew( - double? sx, - double? sy, - ) => - super.noSuchMethod( - Invocation.method( - #skew, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); @override void transform(_i7.Float64List? matrix4) => super.noSuchMethod( - Invocation.method( - #transform, - [matrix4], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); @override - _i7.Float64List getTransform() => (super.noSuchMethod( - Invocation.method( - #getTransform, - [], - ), - returnValue: _i7.Float64List(0), - ) as _i7.Float64List); + _i7.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i7.Float64List(0), + ) + as _i7.Float64List); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void clipRRect( - _i2.RRect? rrect, { - bool? doAntiAlias = true, - }) => + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipRRect, - [rrect], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - _i2.Rect getLocalClipBounds() => (super.noSuchMethod( - Invocation.method( - #getLocalClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getLocalClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - _i2.Rect getDestinationClipBounds() => (super.noSuchMethod( - Invocation.method( - #getDestinationClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getDestinationClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - void drawColor( - _i2.Color? color, - _i2.BlendMode? blendMode, - ) => + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); + + @override + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); + + @override + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => super.noSuchMethod( - Invocation.method( - #drawColor, - [ - color, - blendMode, - ], - ), + Invocation.method(#drawColor, [color, blendMode]), returnValueForMissingStub: null, ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override void drawPaint(_i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawPaint, - [paint], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override - void drawDRRect( - _i2.RRect? outer, - _i2.RRect? inner, - _i2.Paint? paint, - ) => + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawDRRect, - [ - outer, - inner, - paint, - ], - ), + Invocation.method(#drawDRRect, [outer, inner, paint]), returnValueForMissingStub: null, ); @override - void drawOval( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawOval, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawCircle( - _i2.Offset? c, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - c, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [c, radius, paint]), returnValueForMissingStub: null, ); @@ -485,52 +284,27 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @@ -540,19 +314,10 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? src, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageRect, - [ - image, - src, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawImageNine( @@ -560,42 +325,21 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? center, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageNine, - [ - image, - center, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawParagraph( - _i2.Paragraph? paragraph, - _i2.Offset? offset, - ) => + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawParagraph, - [ - paragraph, - offset, - ], - ), + Invocation.method(#drawParagraph, [paragraph, offset]), returnValueForMissingStub: null, ); @@ -604,54 +348,30 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.PointMode? pointMode, List<_i2.Offset>? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawRawPoints( _i2.PointMode? pointMode, _i7.Float32List? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawVertices( _i2.Vertices? vertices, _i2.BlendMode? blendMode, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawVertices, - [ - vertices, - blendMode, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); @override void drawAtlas( @@ -662,22 +382,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawAtlas, - [ - atlas, - transforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawRawAtlas( @@ -688,22 +404,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawAtlas, - [ - atlas, - rstTransforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawShadow( @@ -711,19 +423,15 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Color? color, double? elevation, bool? transparentOccluder, - ) => - super.noSuchMethod( - Invocation.method( - #drawShadow, - [ - path, - color, - elevation, - transparentOccluder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); } /// A class which mocks [PaintingContext]. @@ -735,93 +443,65 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { } @override - _i2.Rect get estimatedBounds => (super.noSuchMethod( - Invocation.getter(#estimatedBounds), - returnValue: _FakeRect_0( - this, - Invocation.getter(#estimatedBounds), - ), - ) as _i2.Rect); + _i2.Rect get estimatedBounds => + (super.noSuchMethod( + Invocation.getter(#estimatedBounds), + returnValue: _FakeRect_0(this, Invocation.getter(#estimatedBounds)), + ) + as _i2.Rect); @override - _i2.Canvas get canvas => (super.noSuchMethod( - Invocation.getter(#canvas), - returnValue: _FakeCanvas_1( - this, - Invocation.getter(#canvas), - ), - ) as _i2.Canvas); + _i2.Canvas get canvas => + (super.noSuchMethod( + Invocation.getter(#canvas), + returnValue: _FakeCanvas_1(this, Invocation.getter(#canvas)), + ) + as _i2.Canvas); @override - void paintChild( - _i3.RenderObject? child, - _i2.Offset? offset, - ) => + void paintChild(_i3.RenderObject? child, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #paintChild, - [ - child, - offset, - ], - ), + Invocation.method(#paintChild, [child, offset]), returnValueForMissingStub: null, ); @override void appendLayer(_i4.Layer? layer) => super.noSuchMethod( - Invocation.method( - #appendLayer, - [layer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#appendLayer, [layer]), + returnValueForMissingStub: null, + ); @override _i2.VoidCallback addCompositionCallback(_i4.CompositionCallback? callback) => (super.noSuchMethod( - Invocation.method( - #addCompositionCallback, - [callback], - ), - returnValue: () {}, - ) as _i2.VoidCallback); + Invocation.method(#addCompositionCallback, [callback]), + returnValue: () {}, + ) + as _i2.VoidCallback); @override void stopRecordingIfNeeded() => super.noSuchMethod( - Invocation.method( - #stopRecordingIfNeeded, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#stopRecordingIfNeeded, []), + returnValueForMissingStub: null, + ); @override void setIsComplexHint() => super.noSuchMethod( - Invocation.method( - #setIsComplexHint, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#setIsComplexHint, []), + returnValueForMissingStub: null, + ); @override void setWillChangeHint() => super.noSuchMethod( - Invocation.method( - #setWillChangeHint, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#setWillChangeHint, []), + returnValueForMissingStub: null, + ); @override void addLayer(_i4.Layer? layer) => super.noSuchMethod( - Invocation.method( - #addLayer, - [layer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addLayer, [layer]), + returnValueForMissingStub: null, + ); @override void pushLayer( @@ -829,19 +509,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i3.PaintingContextCallback? painter, _i2.Offset? offset, { _i2.Rect? childPaintBounds, - }) => - super.noSuchMethod( - Invocation.method( - #pushLayer, - [ - childLayer, - painter, - offset, - ], - {#childPaintBounds: childPaintBounds}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #pushLayer, + [childLayer, painter, offset], + {#childPaintBounds: childPaintBounds}, + ), + returnValueForMissingStub: null, + ); @override _i3.PaintingContext createChildContext( @@ -849,24 +524,13 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Rect? bounds, ) => (super.noSuchMethod( - Invocation.method( - #createChildContext, - [ - childLayer, - bounds, - ], - ), - returnValue: _FakePaintingContext_2( - this, - Invocation.method( - #createChildContext, - [ - childLayer, - bounds, - ], - ), - ), - ) as _i3.PaintingContext); + Invocation.method(#createChildContext, [childLayer, bounds]), + returnValue: _FakePaintingContext_2( + this, + Invocation.method(#createChildContext, [childLayer, bounds]), + ), + ) + as _i3.PaintingContext); @override _i4.ClipRectLayer? pushClipRect( @@ -877,19 +541,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.hardEdge, _i4.ClipRectLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipRect, - [ - needsCompositing, - offset, - clipRect, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipRectLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipRect, + [needsCompositing, offset, clipRect, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipRectLayer?); @override _i4.ClipRRectLayer? pushClipRRect( @@ -901,20 +560,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.antiAlias, _i4.ClipRRectLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipRRect, - [ - needsCompositing, - offset, - bounds, - clipRRect, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipRRectLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipRRect, + [needsCompositing, offset, bounds, clipRRect, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipRRectLayer?); @override _i4.ClipPathLayer? pushClipPath( @@ -926,20 +579,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.antiAlias, _i4.ClipPathLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipPath, - [ - needsCompositing, - offset, - bounds, - clipPath, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipPathLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipPath, + [needsCompositing, offset, bounds, clipPath, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipPathLayer?); @override _i4.ColorFilterLayer pushColorFilter( @@ -949,28 +596,21 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i4.ColorFilterLayer? oldLayer, }) => (super.noSuchMethod( - Invocation.method( - #pushColorFilter, - [ - offset, - colorFilter, - painter, - ], - {#oldLayer: oldLayer}, - ), - returnValue: _FakeColorFilterLayer_3( - this, - Invocation.method( - #pushColorFilter, - [ - offset, - colorFilter, - painter, - ], - {#oldLayer: oldLayer}, - ), - ), - ) as _i4.ColorFilterLayer); + Invocation.method( + #pushColorFilter, + [offset, colorFilter, painter], + {#oldLayer: oldLayer}, + ), + returnValue: _FakeColorFilterLayer_3( + this, + Invocation.method( + #pushColorFilter, + [offset, colorFilter, painter], + {#oldLayer: oldLayer}, + ), + ), + ) + as _i4.ColorFilterLayer); @override _i4.TransformLayer? pushTransform( @@ -980,16 +620,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i3.PaintingContextCallback? painter, { _i4.TransformLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushTransform, - [ - needsCompositing, - offset, - transform, - painter, - ], - {#oldLayer: oldLayer}, - )) as _i4.TransformLayer?); + (super.noSuchMethod( + Invocation.method( + #pushTransform, + [needsCompositing, offset, transform, painter], + {#oldLayer: oldLayer}, + ), + ) + as _i4.TransformLayer?); @override _i4.OpacityLayer pushOpacity( @@ -999,28 +637,21 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i4.OpacityLayer? oldLayer, }) => (super.noSuchMethod( - Invocation.method( - #pushOpacity, - [ - offset, - alpha, - painter, - ], - {#oldLayer: oldLayer}, - ), - returnValue: _FakeOpacityLayer_4( - this, - Invocation.method( - #pushOpacity, - [ - offset, - alpha, - painter, - ], - {#oldLayer: oldLayer}, - ), - ), - ) as _i4.OpacityLayer); + Invocation.method( + #pushOpacity, + [offset, alpha, painter], + {#oldLayer: oldLayer}, + ), + returnValue: _FakeOpacityLayer_4( + this, + Invocation.method( + #pushOpacity, + [offset, alpha, painter], + {#oldLayer: oldLayer}, + ), + ), + ) + as _i4.OpacityLayer); @override void clipPathAndPaint( @@ -1028,19 +659,10 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipPathAndPaint, - [ - path, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipPathAndPaint, [path, clipBehavior, bounds, painter]), + returnValueForMissingStub: null, + ); @override void clipRRectAndPaint( @@ -1048,19 +670,15 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipRRectAndPaint, - [ - rrect, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipRRectAndPaint, [ + rrect, + clipBehavior, + bounds, + painter, + ]), + returnValueForMissingStub: null, + ); @override void clipRectAndPaint( @@ -1068,19 +686,10 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipRectAndPaint, - [ - rect, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipRectAndPaint, [rect, clipBehavior, bounds, painter]), + returnValueForMissingStub: null, + ); } /// A class which mocks [BuildContext]. @@ -1092,25 +701,25 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { } @override - _i6.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_5( - this, - Invocation.getter(#widget), - ), - ) as _i6.Widget); + _i6.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_5(this, Invocation.getter(#widget)), + ) + as _i6.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i6.InheritedWidget dependOnInheritedElement( @@ -1118,47 +727,39 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_6( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i6.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_6( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i6.InheritedWidget); @override void visitAncestorElements(_i6.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i6.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i9.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -1168,20 +769,13 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { _i5.DiagnosticsTreeStyle? style = _i5.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i5.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i5.DiagnosticsNode); @override _i5.DiagnosticsNode describeWidget( @@ -1189,48 +783,36 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { _i5.DiagnosticsTreeStyle? style = _i5.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i5.DiagnosticsNode); - - @override - List<_i5.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i5.DiagnosticsNode); + + @override + List<_i5.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i5.DiagnosticsNode>[], - ) as List<_i5.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i5.DiagnosticsNode>[], + ) + as List<_i5.DiagnosticsNode>); @override _i5.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i5.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i5.DiagnosticsNode); } /// A class which mocks [RadarChartPainter]. @@ -1244,10 +826,7 @@ class MockRadarChartPainter extends _i1.Mock implements _i10.RadarChartPainter { @override set dataSetsPosition(List<_i10.RadarDataSetsPosition>? _dataSetsPosition) => super.noSuchMethod( - Invocation.setter( - #dataSetsPosition, - _dataSetsPosition, - ), + Invocation.setter(#dataSetsPosition, _dataSetsPosition), returnValueForMissingStub: null, ); @@ -1256,36 +835,26 @@ class MockRadarChartPainter extends _i1.Mock implements _i10.RadarChartPainter { _i6.BuildContext? context, _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.RadarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #paint, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#paint, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override - double getDefaultChartCenterValue() => (super.noSuchMethod( - Invocation.method( - #getDefaultChartCenterValue, - [], - ), - returnValue: 0.0, - ) as double); + double getDefaultChartCenterValue() => + (super.noSuchMethod( + Invocation.method(#getDefaultChartCenterValue, []), + returnValue: 0.0, + ) + as double); @override - double getChartCenterValue(_i13.RadarChartData? data) => (super.noSuchMethod( - Invocation.method( - #getChartCenterValue, - [data], - ), - returnValue: 0.0, - ) as double); + double getChartCenterValue(_i13.RadarChartData? data) => + (super.noSuchMethod( + Invocation.method(#getChartCenterValue, [data]), + returnValue: 0.0, + ) + as double); @override double getScaledPoint( @@ -1294,102 +863,64 @@ class MockRadarChartPainter extends _i1.Mock implements _i10.RadarChartPainter { _i13.RadarChartData? data, ) => (super.noSuchMethod( - Invocation.method( - #getScaledPoint, - [ - point, - radius, - data, - ], - ), - returnValue: 0.0, - ) as double); - - @override - double getFirstTickValue(_i13.RadarChartData? data) => (super.noSuchMethod( - Invocation.method( - #getFirstTickValue, - [data], - ), - returnValue: 0.0, - ) as double); - - @override - double getSpaceBetweenTicks(_i13.RadarChartData? data) => (super.noSuchMethod( - Invocation.method( - #getSpaceBetweenTicks, - [data], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getScaledPoint, [point, radius, data]), + returnValue: 0.0, + ) + as double); + + @override + double getFirstTickValue(_i13.RadarChartData? data) => + (super.noSuchMethod( + Invocation.method(#getFirstTickValue, [data]), + returnValue: 0.0, + ) + as double); + + @override + double getSpaceBetweenTicks(_i13.RadarChartData? data) => + (super.noSuchMethod( + Invocation.method(#getSpaceBetweenTicks, [data]), + returnValue: 0.0, + ) + as double); @override void drawTicks( _i6.BuildContext? context, _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.RadarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawTicks, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawTicks, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawGrids( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.RadarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawGrids, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawGrids, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawTitles( _i6.BuildContext? context, _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.RadarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawTitles, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawTitles, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawDataSets( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.RadarChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawDataSets, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDataSets, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override _i13.RadarTouchedSpot? handleTouch( @@ -1397,41 +928,34 @@ class MockRadarChartPainter extends _i1.Mock implements _i10.RadarChartPainter { _i2.Size? viewSize, _i12.PaintHolder<_i13.RadarChartData>? holder, ) => - (super.noSuchMethod(Invocation.method( - #handleTouch, - [ - touchedPoint, - viewSize, - holder, - ], - )) as _i13.RadarTouchedSpot?); - - @override - double radarCenterY(_i2.Size? size) => (super.noSuchMethod( - Invocation.method( - #radarCenterY, - [size], - ), - returnValue: 0.0, - ) as double); - - @override - double radarCenterX(_i2.Size? size) => (super.noSuchMethod( - Invocation.method( - #radarCenterX, - [size], - ), - returnValue: 0.0, - ) as double); - - @override - double radarRadius(_i2.Size? size) => (super.noSuchMethod( - Invocation.method( - #radarRadius, - [size], - ), - returnValue: 0.0, - ) as double); + (super.noSuchMethod( + Invocation.method(#handleTouch, [touchedPoint, viewSize, holder]), + ) + as _i13.RadarTouchedSpot?); + + @override + double radarCenterY(_i2.Size? size) => + (super.noSuchMethod( + Invocation.method(#radarCenterY, [size]), + returnValue: 0.0, + ) + as double); + + @override + double radarCenterX(_i2.Size? size) => + (super.noSuchMethod( + Invocation.method(#radarCenterX, [size]), + returnValue: 0.0, + ) + as double); + + @override + double radarRadius(_i2.Size? size) => + (super.noSuchMethod( + Invocation.method(#radarRadius, [size]), + returnValue: 0.0, + ) + as double); @override List<_i10.RadarDataSetsPosition> calculateDataSetsPosition( @@ -1439,13 +963,8 @@ class MockRadarChartPainter extends _i1.Mock implements _i10.RadarChartPainter { _i12.PaintHolder<_i13.RadarChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #calculateDataSetsPosition, - [ - viewSize, - holder, - ], - ), - returnValue: <_i10.RadarDataSetsPosition>[], - ) as List<_i10.RadarDataSetsPosition>); + Invocation.method(#calculateDataSetsPosition, [viewSize, holder]), + returnValue: <_i10.RadarDataSetsPosition>[], + ) + as List<_i10.RadarDataSetsPosition>); } diff --git a/test/chart/scatter_chart/scatter_chart_painter_test.mocks.dart b/test/chart/scatter_chart/scatter_chart_painter_test.mocks.dart index f8eca0cb5..90b5d0312 100644 --- a/test/chart/scatter_chart/scatter_chart_painter_test.mocks.dart +++ b/test/chart/scatter_chart/scatter_chart_painter_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/chart/scatter_chart/scatter_chart_painter_test.dart. // Do not manually edit this file. @@ -22,49 +22,30 @@ import 'package:mockito/src/dummies.dart' as _i9; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { - _FakeRect_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCanvas_1 extends _i1.SmartFake implements _i2.Canvas { - _FakeCanvas_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCanvas_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSize_2 extends _i1.SmartFake implements _i2.Size { - _FakeSize_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSize_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWidget_3 extends _i1.SmartFake implements _i3.Widget { - _FakeWidget_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -73,13 +54,8 @@ class _FakeWidget_3 extends _i1.SmartFake implements _i3.Widget { class _FakeInheritedWidget_4 extends _i1.SmartFake implements _i3.InheritedWidget { - _FakeInheritedWidget_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -88,40 +64,24 @@ class _FakeInheritedWidget_4 extends _i1.SmartFake class _FakeDiagnosticsNode_5 extends _i1.SmartFake implements _i3.DiagnosticsNode { - _FakeDiagnosticsNode_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i4.TextTreeConfiguration? parentConfiguration, _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } class _FakeOffset_6 extends _i1.SmartFake implements _i2.Offset { - _FakeOffset_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOffset_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBorderSide_7 extends _i1.SmartFake implements _i3.BorderSide { - _FakeBorderSide_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBorderSide_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -129,13 +89,8 @@ class _FakeBorderSide_7 extends _i1.SmartFake implements _i3.BorderSide { } class _FakeTextStyle_8 extends _i1.SmartFake implements _i3.TextStyle { - _FakeTextStyle_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeTextStyle_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -152,331 +107,170 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void restoreToCount(int? count) => super.noSuchMethod( - Invocation.method( - #restoreToCount, - [count], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); @override - int getSaveCount() => (super.noSuchMethod( - Invocation.method( - #getSaveCount, - [], - ), - returnValue: 0, - ) as int); + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override - void scale( - double? sx, [ - double? sy, - ]) => - super.noSuchMethod( - Invocation.method( - #scale, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radians) => super.noSuchMethod( - Invocation.method( - #rotate, - [radians], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); @override - void skew( - double? sx, - double? sy, - ) => - super.noSuchMethod( - Invocation.method( - #skew, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); @override void transform(_i5.Float64List? matrix4) => super.noSuchMethod( - Invocation.method( - #transform, - [matrix4], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); @override - _i5.Float64List getTransform() => (super.noSuchMethod( - Invocation.method( - #getTransform, - [], - ), - returnValue: _i5.Float64List(0), - ) as _i5.Float64List); + _i5.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i5.Float64List(0), + ) + as _i5.Float64List); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void clipRRect( - _i2.RRect? rrect, { - bool? doAntiAlias = true, - }) => + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipRRect, - [rrect], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - _i2.Rect getLocalClipBounds() => (super.noSuchMethod( - Invocation.method( - #getLocalClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getLocalClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - _i2.Rect getDestinationClipBounds() => (super.noSuchMethod( - Invocation.method( - #getDestinationClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getDestinationClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - void drawColor( - _i2.Color? color, - _i2.BlendMode? blendMode, - ) => + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); + + @override + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); + + @override + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => super.noSuchMethod( - Invocation.method( - #drawColor, - [ - color, - blendMode, - ], - ), + Invocation.method(#drawColor, [color, blendMode]), returnValueForMissingStub: null, ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override void drawPaint(_i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawPaint, - [paint], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override - void drawDRRect( - _i2.RRect? outer, - _i2.RRect? inner, - _i2.Paint? paint, - ) => + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawDRRect, - [ - outer, - inner, - paint, - ], - ), + Invocation.method(#drawDRRect, [outer, inner, paint]), returnValueForMissingStub: null, ); @override - void drawOval( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawOval, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawCircle( - _i2.Offset? c, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - c, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [c, radius, paint]), returnValueForMissingStub: null, ); @@ -487,52 +281,27 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @@ -542,19 +311,10 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? src, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageRect, - [ - image, - src, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawImageNine( @@ -562,42 +322,21 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? center, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageNine, - [ - image, - center, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawParagraph( - _i2.Paragraph? paragraph, - _i2.Offset? offset, - ) => + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawParagraph, - [ - paragraph, - offset, - ], - ), + Invocation.method(#drawParagraph, [paragraph, offset]), returnValueForMissingStub: null, ); @@ -606,54 +345,30 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.PointMode? pointMode, List<_i2.Offset>? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawRawPoints( _i2.PointMode? pointMode, _i5.Float32List? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawVertices( _i2.Vertices? vertices, _i2.BlendMode? blendMode, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawVertices, - [ - vertices, - blendMode, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); @override void drawAtlas( @@ -664,22 +379,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawAtlas, - [ - atlas, - transforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawRawAtlas( @@ -690,22 +401,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawAtlas, - [ - atlas, - rstTransforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawShadow( @@ -713,19 +420,15 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Color? color, double? elevation, bool? transparentOccluder, - ) => - super.noSuchMethod( - Invocation.method( - #drawShadow, - [ - path, - color, - elevation, - transparentOccluder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); } /// A class which mocks [CanvasWrapper]. @@ -737,222 +440,114 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { } @override - _i2.Canvas get canvas => (super.noSuchMethod( - Invocation.getter(#canvas), - returnValue: _FakeCanvas_1( - this, - Invocation.getter(#canvas), - ), - ) as _i2.Canvas); + _i2.Canvas get canvas => + (super.noSuchMethod( + Invocation.getter(#canvas), + returnValue: _FakeCanvas_1(this, Invocation.getter(#canvas)), + ) + as _i2.Canvas); @override - _i2.Size get size => (super.noSuchMethod( - Invocation.getter(#size), - returnValue: _FakeSize_2( - this, - Invocation.getter(#size), - ), - ) as _i2.Size); + _i2.Size get size => + (super.noSuchMethod( + Invocation.getter(#size), + returnValue: _FakeSize_2(this, Invocation.getter(#size)), + ) + as _i2.Size); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radius) => super.noSuchMethod( - Invocation.method( - #rotate, - [radius], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radius]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override - void drawCircle( - _i2.Offset? center, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? center, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - center, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [center, radius, paint]), returnValueForMissingStub: null, ); @@ -963,52 +558,31 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawText( _i3.TextPainter? tp, _i2.Offset? offset, [ double? rotateAngle, - ]) => - super.noSuchMethod( - Invocation.method( - #drawText, - [ - tp, - offset, - rotateAngle, - ], - ), - returnValueForMissingStub: null, - ); + ]) => super.noSuchMethod( + Invocation.method(#drawText, [tp, offset, rotateAngle]), + returnValueForMissingStub: null, + ); @override - void drawVerticalText( - _i3.TextPainter? tp, - _i2.Offset? offset, - ) => + void drawVerticalText(_i3.TextPainter? tp, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawVerticalText, - [ - tp, - offset, - ], - ), + Invocation.method(#drawVerticalText, [tp, offset]), returnValueForMissingStub: null, ); @@ -1017,18 +591,28 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i7.FlDotPainter? painter, _i7.FlSpot? spot, _i2.Offset? offset, - ) => - super.noSuchMethod( - Invocation.method( - #drawDot, - [ - painter, - spot, - offset, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDot, [painter, spot, offset]), + returnValueForMissingStub: null, + ); + + @override + void drawErrorIndicator( + _i7.FlSpotErrorRangePainter? painter, + _i7.FlSpot? origin, + _i2.Offset? offset, + _i2.Rect? errorRelativeRect, + _i7.AxisChartData? axisData, + ) => super.noSuchMethod( + Invocation.method(#drawErrorIndicator, [ + painter, + origin, + offset, + errorRelativeRect, + axisData, + ]), + returnValueForMissingStub: null, + ); @override void drawRotated({ @@ -1037,21 +621,16 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i2.Offset? drawOffset = _i2.Offset.zero, required double? angle, required _i6.DrawCallback? drawCallback, - }) => - super.noSuchMethod( - Invocation.method( - #drawRotated, - [], - { - #size: size, - #rotationOffset: rotationOffset, - #drawOffset: drawOffset, - #angle: angle, - #drawCallback: drawCallback, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method(#drawRotated, [], { + #size: size, + #rotationOffset: rotationOffset, + #drawOffset: drawOffset, + #angle: angle, + #drawCallback: drawCallback, + }), + returnValueForMissingStub: null, + ); @override void drawDashedLine( @@ -1059,19 +638,10 @@ class MockCanvasWrapper extends _i1.Mock implements _i6.CanvasWrapper { _i2.Offset? to, _i2.Paint? painter, List? dashArray, - ) => - super.noSuchMethod( - Invocation.method( - #drawDashedLine, - [ - from, - to, - painter, - dashArray, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawDashedLine, [from, to, painter, dashArray]), + returnValueForMissingStub: null, + ); } /// A class which mocks [BuildContext]. @@ -1083,25 +653,25 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { } @override - _i3.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_3( - this, - Invocation.getter(#widget), - ), - ) as _i3.Widget); + _i3.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_3(this, Invocation.getter(#widget)), + ) + as _i3.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i3.InheritedWidget dependOnInheritedElement( @@ -1109,47 +679,39 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_4( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i3.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_4( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i3.InheritedWidget); @override void visitAncestorElements(_i3.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i3.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i3.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -1159,20 +721,13 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); @override _i3.DiagnosticsNode describeWidget( @@ -1180,48 +735,36 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); - - @override - List<_i3.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); + + @override + List<_i3.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i3.DiagnosticsNode>[], - ) as List<_i3.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i3.DiagnosticsNode>[], + ) + as List<_i3.DiagnosticsNode>); @override _i3.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_5( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i3.DiagnosticsNode); } /// A class which mocks [Utils]. @@ -1233,91 +776,49 @@ class MockUtils extends _i1.Mock implements _i8.Utils { } @override - double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #radians, - [degrees], - ), - returnValue: 0.0, - ) as double); - - @override - double degrees(double? radians) => (super.noSuchMethod( - Invocation.method( - #degrees, - [radians], - ), - returnValue: 0.0, - ) as double); - - @override - _i2.Size getDefaultSize(_i2.Size? screenSize) => (super.noSuchMethod( - Invocation.method( - #getDefaultSize, - [screenSize], - ), - returnValue: _FakeSize_2( - this, - Invocation.method( - #getDefaultSize, - [screenSize], - ), - ), - ) as _i2.Size); - - @override - double translateRotatedPosition( - double? size, - double? degree, - ) => + double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #translateRotatedPosition, - [ - size, - degree, - ], - ), - returnValue: 0.0, - ) as double); - - @override - _i2.Offset calculateRotationOffset( - _i2.Size? size, - double? degree, - ) => + Invocation.method(#radians, [degrees]), + returnValue: 0.0, + ) + as double); + + @override + double degrees(double? radians) => + (super.noSuchMethod( + Invocation.method(#degrees, [radians]), + returnValue: 0.0, + ) + as double); + + @override + double translateRotatedPosition(double? size, double? degree) => + (super.noSuchMethod( + Invocation.method(#translateRotatedPosition, [size, degree]), + returnValue: 0.0, + ) + as double); + + @override + _i2.Offset calculateRotationOffset(_i2.Size? size, double? degree) => (super.noSuchMethod( - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - returnValue: _FakeOffset_6( - this, - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - ), - ) as _i2.Offset); + Invocation.method(#calculateRotationOffset, [size, degree]), + returnValue: _FakeOffset_6( + this, + Invocation.method(#calculateRotationOffset, [size, degree]), + ), + ) + as _i2.Offset); @override _i3.BorderRadius? normalizeBorderRadius( _i3.BorderRadius? borderRadius, double? width, ) => - (super.noSuchMethod(Invocation.method( - #normalizeBorderRadius, - [ - borderRadius, - width, - ], - )) as _i3.BorderRadius?); + (super.noSuchMethod( + Invocation.method(#normalizeBorderRadius, [borderRadius, width]), + ) + as _i3.BorderRadius?); @override _i3.BorderSide normalizeBorderSide( @@ -1325,24 +826,13 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? width, ) => (super.noSuchMethod( - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - returnValue: _FakeBorderSide_7( - this, - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - ), - ) as _i3.BorderSide); + Invocation.method(#normalizeBorderSide, [borderSide, width]), + returnValue: _FakeBorderSide_7( + this, + Invocation.method(#normalizeBorderSide, [borderSide, width]), + ), + ) + as _i3.BorderSide); @override double getEfficientInterval( @@ -1351,62 +841,41 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? pixelPerInterval = 40.0, }) => (super.noSuchMethod( - Invocation.method( - #getEfficientInterval, - [ - axisViewSize, - diffInAxis, - ], - {#pixelPerInterval: pixelPerInterval}, - ), - returnValue: 0.0, - ) as double); - - @override - double roundInterval(double? input) => (super.noSuchMethod( - Invocation.method( - #roundInterval, - [input], - ), - returnValue: 0.0, - ) as double); - - @override - int getFractionDigits(double? value) => (super.noSuchMethod( - Invocation.method( - #getFractionDigits, - [value], - ), - returnValue: 0, - ) as int); - - @override - String formatNumber( - double? axisMin, - double? axisMax, - double? axisValue, - ) => + Invocation.method( + #getEfficientInterval, + [axisViewSize, diffInAxis], + {#pixelPerInterval: pixelPerInterval}, + ), + returnValue: 0.0, + ) + as double); + + @override + double roundInterval(double? input) => + (super.noSuchMethod( + Invocation.method(#roundInterval, [input]), + returnValue: 0.0, + ) + as double); + + @override + int getFractionDigits(double? value) => + (super.noSuchMethod( + Invocation.method(#getFractionDigits, [value]), + returnValue: 0, + ) + as int); + + @override + String formatNumber(double? axisMin, double? axisMax, double? axisValue) => (super.noSuchMethod( - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - returnValue: _i9.dummyValue( - this, - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - ), - ) as String); + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + returnValue: _i9.dummyValue( + this, + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + ), + ) + as String); @override _i3.TextStyle getThemeAwareTextStyle( @@ -1414,24 +883,19 @@ class MockUtils extends _i1.Mock implements _i8.Utils { _i3.TextStyle? providedStyle, ) => (super.noSuchMethod( - Invocation.method( - #getThemeAwareTextStyle, - [ - context, - providedStyle, - ], - ), - returnValue: _FakeTextStyle_8( - this, - Invocation.method( - #getThemeAwareTextStyle, - [ + Invocation.method(#getThemeAwareTextStyle, [ context, providedStyle, - ], - ), - ), - ) as _i3.TextStyle); + ]), + returnValue: _FakeTextStyle_8( + this, + Invocation.method(#getThemeAwareTextStyle, [ + context, + providedStyle, + ]), + ), + ) + as _i3.TextStyle); @override double getBestInitialIntervalValue( @@ -1441,24 +905,20 @@ class MockUtils extends _i1.Mock implements _i8.Utils { double? baseline = 0.0, }) => (super.noSuchMethod( - Invocation.method( - #getBestInitialIntervalValue, - [ - min, - max, - interval, - ], - {#baseline: baseline}, - ), - returnValue: 0.0, - ) as double); - - @override - double convertRadiusToSigma(double? radius) => (super.noSuchMethod( - Invocation.method( - #convertRadiusToSigma, - [radius], - ), - returnValue: 0.0, - ) as double); + Invocation.method( + #getBestInitialIntervalValue, + [min, max, interval], + {#baseline: baseline}, + ), + returnValue: 0.0, + ) + as double); + + @override + double convertRadiusToSigma(double? radius) => + (super.noSuchMethod( + Invocation.method(#convertRadiusToSigma, [radius]), + returnValue: 0.0, + ) + as double); } diff --git a/test/chart/scatter_chart/scatter_chart_renderer_test.mocks.dart b/test/chart/scatter_chart/scatter_chart_renderer_test.mocks.dart index d6380b076..553687f52 100644 --- a/test/chart/scatter_chart/scatter_chart_renderer_test.mocks.dart +++ b/test/chart/scatter_chart/scatter_chart_renderer_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/chart/scatter_chart/scatter_chart_renderer_test.dart. // Do not manually edit this file. @@ -28,51 +28,32 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { - _FakeRect_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCanvas_1 extends _i1.SmartFake implements _i2.Canvas { - _FakeCanvas_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCanvas_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePaintingContext_2 extends _i1.SmartFake implements _i3.PaintingContext { - _FakePaintingContext_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePaintingContext_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeColorFilterLayer_3 extends _i1.SmartFake implements _i4.ColorFilterLayer { - _FakeColorFilterLayer_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeColorFilterLayer_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -80,13 +61,8 @@ class _FakeColorFilterLayer_3 extends _i1.SmartFake } class _FakeOpacityLayer_4 extends _i1.SmartFake implements _i4.OpacityLayer { - _FakeOpacityLayer_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOpacityLayer_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -94,13 +70,8 @@ class _FakeOpacityLayer_4 extends _i1.SmartFake implements _i4.OpacityLayer { } class _FakeWidget_5 extends _i1.SmartFake implements _i6.Widget { - _FakeWidget_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -109,13 +80,8 @@ class _FakeWidget_5 extends _i1.SmartFake implements _i6.Widget { class _FakeInheritedWidget_6 extends _i1.SmartFake implements _i6.InheritedWidget { - _FakeInheritedWidget_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -124,20 +90,14 @@ class _FakeInheritedWidget_6 extends _i1.SmartFake class _FakeDiagnosticsNode_7 extends _i1.SmartFake implements _i5.DiagnosticsNode { - _FakeDiagnosticsNode_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i5.TextTreeConfiguration? parentConfiguration, _i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } /// A class which mocks [Canvas]. @@ -150,331 +110,170 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void restoreToCount(int? count) => super.noSuchMethod( - Invocation.method( - #restoreToCount, - [count], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); @override - int getSaveCount() => (super.noSuchMethod( - Invocation.method( - #getSaveCount, - [], - ), - returnValue: 0, - ) as int); + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override - void scale( - double? sx, [ - double? sy, - ]) => - super.noSuchMethod( - Invocation.method( - #scale, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radians) => super.noSuchMethod( - Invocation.method( - #rotate, - [radians], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); @override - void skew( - double? sx, - double? sy, - ) => - super.noSuchMethod( - Invocation.method( - #skew, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); @override void transform(_i7.Float64List? matrix4) => super.noSuchMethod( - Invocation.method( - #transform, - [matrix4], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); @override - _i7.Float64List getTransform() => (super.noSuchMethod( - Invocation.method( - #getTransform, - [], - ), - returnValue: _i7.Float64List(0), - ) as _i7.Float64List); + _i7.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i7.Float64List(0), + ) + as _i7.Float64List); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void clipRRect( - _i2.RRect? rrect, { - bool? doAntiAlias = true, - }) => + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipRRect, - [rrect], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - _i2.Rect getLocalClipBounds() => (super.noSuchMethod( - Invocation.method( - #getLocalClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getLocalClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - _i2.Rect getDestinationClipBounds() => (super.noSuchMethod( - Invocation.method( - #getDestinationClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getDestinationClipBounds, - [], - ), - ), - ) as _i2.Rect); - - @override - void drawColor( - _i2.Color? color, - _i2.BlendMode? blendMode, - ) => + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); + + @override + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); + + @override + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => super.noSuchMethod( - Invocation.method( - #drawColor, - [ - color, - blendMode, - ], - ), + Invocation.method(#drawColor, [color, blendMode]), returnValueForMissingStub: null, ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override void drawPaint(_i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawPaint, - [paint], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override - void drawDRRect( - _i2.RRect? outer, - _i2.RRect? inner, - _i2.Paint? paint, - ) => + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawDRRect, - [ - outer, - inner, - paint, - ], - ), + Invocation.method(#drawDRRect, [outer, inner, paint]), returnValueForMissingStub: null, ); @override - void drawOval( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawOval, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawCircle( - _i2.Offset? c, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - c, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [c, radius, paint]), returnValueForMissingStub: null, ); @@ -485,52 +284,27 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @@ -540,19 +314,10 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? src, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageRect, - [ - image, - src, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawImageNine( @@ -560,42 +325,21 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? center, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageNine, - [ - image, - center, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawParagraph( - _i2.Paragraph? paragraph, - _i2.Offset? offset, - ) => + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawParagraph, - [ - paragraph, - offset, - ], - ), + Invocation.method(#drawParagraph, [paragraph, offset]), returnValueForMissingStub: null, ); @@ -604,54 +348,30 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.PointMode? pointMode, List<_i2.Offset>? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawRawPoints( _i2.PointMode? pointMode, _i7.Float32List? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawVertices( _i2.Vertices? vertices, _i2.BlendMode? blendMode, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawVertices, - [ - vertices, - blendMode, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); @override void drawAtlas( @@ -662,22 +382,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawAtlas, - [ - atlas, - transforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawRawAtlas( @@ -688,22 +404,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawAtlas, - [ - atlas, - rstTransforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawShadow( @@ -711,19 +423,15 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Color? color, double? elevation, bool? transparentOccluder, - ) => - super.noSuchMethod( - Invocation.method( - #drawShadow, - [ - path, - color, - elevation, - transparentOccluder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); } /// A class which mocks [PaintingContext]. @@ -735,93 +443,65 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { } @override - _i2.Rect get estimatedBounds => (super.noSuchMethod( - Invocation.getter(#estimatedBounds), - returnValue: _FakeRect_0( - this, - Invocation.getter(#estimatedBounds), - ), - ) as _i2.Rect); + _i2.Rect get estimatedBounds => + (super.noSuchMethod( + Invocation.getter(#estimatedBounds), + returnValue: _FakeRect_0(this, Invocation.getter(#estimatedBounds)), + ) + as _i2.Rect); @override - _i2.Canvas get canvas => (super.noSuchMethod( - Invocation.getter(#canvas), - returnValue: _FakeCanvas_1( - this, - Invocation.getter(#canvas), - ), - ) as _i2.Canvas); + _i2.Canvas get canvas => + (super.noSuchMethod( + Invocation.getter(#canvas), + returnValue: _FakeCanvas_1(this, Invocation.getter(#canvas)), + ) + as _i2.Canvas); @override - void paintChild( - _i3.RenderObject? child, - _i2.Offset? offset, - ) => + void paintChild(_i3.RenderObject? child, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #paintChild, - [ - child, - offset, - ], - ), + Invocation.method(#paintChild, [child, offset]), returnValueForMissingStub: null, ); @override void appendLayer(_i4.Layer? layer) => super.noSuchMethod( - Invocation.method( - #appendLayer, - [layer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#appendLayer, [layer]), + returnValueForMissingStub: null, + ); @override _i2.VoidCallback addCompositionCallback(_i4.CompositionCallback? callback) => (super.noSuchMethod( - Invocation.method( - #addCompositionCallback, - [callback], - ), - returnValue: () {}, - ) as _i2.VoidCallback); + Invocation.method(#addCompositionCallback, [callback]), + returnValue: () {}, + ) + as _i2.VoidCallback); @override void stopRecordingIfNeeded() => super.noSuchMethod( - Invocation.method( - #stopRecordingIfNeeded, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#stopRecordingIfNeeded, []), + returnValueForMissingStub: null, + ); @override void setIsComplexHint() => super.noSuchMethod( - Invocation.method( - #setIsComplexHint, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#setIsComplexHint, []), + returnValueForMissingStub: null, + ); @override void setWillChangeHint() => super.noSuchMethod( - Invocation.method( - #setWillChangeHint, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#setWillChangeHint, []), + returnValueForMissingStub: null, + ); @override void addLayer(_i4.Layer? layer) => super.noSuchMethod( - Invocation.method( - #addLayer, - [layer], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#addLayer, [layer]), + returnValueForMissingStub: null, + ); @override void pushLayer( @@ -829,19 +509,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i3.PaintingContextCallback? painter, _i2.Offset? offset, { _i2.Rect? childPaintBounds, - }) => - super.noSuchMethod( - Invocation.method( - #pushLayer, - [ - childLayer, - painter, - offset, - ], - {#childPaintBounds: childPaintBounds}, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #pushLayer, + [childLayer, painter, offset], + {#childPaintBounds: childPaintBounds}, + ), + returnValueForMissingStub: null, + ); @override _i3.PaintingContext createChildContext( @@ -849,24 +524,13 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Rect? bounds, ) => (super.noSuchMethod( - Invocation.method( - #createChildContext, - [ - childLayer, - bounds, - ], - ), - returnValue: _FakePaintingContext_2( - this, - Invocation.method( - #createChildContext, - [ - childLayer, - bounds, - ], - ), - ), - ) as _i3.PaintingContext); + Invocation.method(#createChildContext, [childLayer, bounds]), + returnValue: _FakePaintingContext_2( + this, + Invocation.method(#createChildContext, [childLayer, bounds]), + ), + ) + as _i3.PaintingContext); @override _i4.ClipRectLayer? pushClipRect( @@ -877,19 +541,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.hardEdge, _i4.ClipRectLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipRect, - [ - needsCompositing, - offset, - clipRect, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipRectLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipRect, + [needsCompositing, offset, clipRect, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipRectLayer?); @override _i4.ClipRRectLayer? pushClipRRect( @@ -901,20 +560,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.antiAlias, _i4.ClipRRectLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipRRect, - [ - needsCompositing, - offset, - bounds, - clipRRect, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipRRectLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipRRect, + [needsCompositing, offset, bounds, clipRRect, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipRRectLayer?); @override _i4.ClipPathLayer? pushClipPath( @@ -926,20 +579,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior = _i2.Clip.antiAlias, _i4.ClipPathLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushClipPath, - [ - needsCompositing, - offset, - bounds, - clipPath, - painter, - ], - { - #clipBehavior: clipBehavior, - #oldLayer: oldLayer, - }, - )) as _i4.ClipPathLayer?); + (super.noSuchMethod( + Invocation.method( + #pushClipPath, + [needsCompositing, offset, bounds, clipPath, painter], + {#clipBehavior: clipBehavior, #oldLayer: oldLayer}, + ), + ) + as _i4.ClipPathLayer?); @override _i4.ColorFilterLayer pushColorFilter( @@ -949,28 +596,21 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i4.ColorFilterLayer? oldLayer, }) => (super.noSuchMethod( - Invocation.method( - #pushColorFilter, - [ - offset, - colorFilter, - painter, - ], - {#oldLayer: oldLayer}, - ), - returnValue: _FakeColorFilterLayer_3( - this, - Invocation.method( - #pushColorFilter, - [ - offset, - colorFilter, - painter, - ], - {#oldLayer: oldLayer}, - ), - ), - ) as _i4.ColorFilterLayer); + Invocation.method( + #pushColorFilter, + [offset, colorFilter, painter], + {#oldLayer: oldLayer}, + ), + returnValue: _FakeColorFilterLayer_3( + this, + Invocation.method( + #pushColorFilter, + [offset, colorFilter, painter], + {#oldLayer: oldLayer}, + ), + ), + ) + as _i4.ColorFilterLayer); @override _i4.TransformLayer? pushTransform( @@ -980,16 +620,14 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i3.PaintingContextCallback? painter, { _i4.TransformLayer? oldLayer, }) => - (super.noSuchMethod(Invocation.method( - #pushTransform, - [ - needsCompositing, - offset, - transform, - painter, - ], - {#oldLayer: oldLayer}, - )) as _i4.TransformLayer?); + (super.noSuchMethod( + Invocation.method( + #pushTransform, + [needsCompositing, offset, transform, painter], + {#oldLayer: oldLayer}, + ), + ) + as _i4.TransformLayer?); @override _i4.OpacityLayer pushOpacity( @@ -999,28 +637,21 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i4.OpacityLayer? oldLayer, }) => (super.noSuchMethod( - Invocation.method( - #pushOpacity, - [ - offset, - alpha, - painter, - ], - {#oldLayer: oldLayer}, - ), - returnValue: _FakeOpacityLayer_4( - this, - Invocation.method( - #pushOpacity, - [ - offset, - alpha, - painter, - ], - {#oldLayer: oldLayer}, - ), - ), - ) as _i4.OpacityLayer); + Invocation.method( + #pushOpacity, + [offset, alpha, painter], + {#oldLayer: oldLayer}, + ), + returnValue: _FakeOpacityLayer_4( + this, + Invocation.method( + #pushOpacity, + [offset, alpha, painter], + {#oldLayer: oldLayer}, + ), + ), + ) + as _i4.OpacityLayer); @override void clipPathAndPaint( @@ -1028,19 +659,10 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipPathAndPaint, - [ - path, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipPathAndPaint, [path, clipBehavior, bounds, painter]), + returnValueForMissingStub: null, + ); @override void clipRRectAndPaint( @@ -1048,19 +670,15 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipRRectAndPaint, - [ - rrect, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipRRectAndPaint, [ + rrect, + clipBehavior, + bounds, + painter, + ]), + returnValueForMissingStub: null, + ); @override void clipRectAndPaint( @@ -1068,19 +686,10 @@ class MockPaintingContext extends _i1.Mock implements _i3.PaintingContext { _i2.Clip? clipBehavior, _i2.Rect? bounds, _i2.VoidCallback? painter, - ) => - super.noSuchMethod( - Invocation.method( - #clipRectAndPaint, - [ - rect, - clipBehavior, - bounds, - painter, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#clipRectAndPaint, [rect, clipBehavior, bounds, painter]), + returnValueForMissingStub: null, + ); } /// A class which mocks [BuildContext]. @@ -1092,25 +701,25 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { } @override - _i6.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_5( - this, - Invocation.getter(#widget), - ), - ) as _i6.Widget); + _i6.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_5(this, Invocation.getter(#widget)), + ) + as _i6.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i6.InheritedWidget dependOnInheritedElement( @@ -1118,47 +727,39 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_6( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i6.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_6( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i6.InheritedWidget); @override void visitAncestorElements(_i6.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i6.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i9.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -1168,20 +769,13 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { _i5.DiagnosticsTreeStyle? style = _i5.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i5.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i5.DiagnosticsNode); @override _i5.DiagnosticsNode describeWidget( @@ -1189,48 +783,36 @@ class MockBuildContext extends _i1.Mock implements _i6.BuildContext { _i5.DiagnosticsTreeStyle? style = _i5.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i5.DiagnosticsNode); - - @override - List<_i5.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i5.DiagnosticsNode); + + @override + List<_i5.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i5.DiagnosticsNode>[], - ) as List<_i5.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i5.DiagnosticsNode>[], + ) + as List<_i5.DiagnosticsNode>); @override _i5.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_7( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i5.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_7( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i5.DiagnosticsNode); } /// A class which mocks [ScatterChartPainter]. @@ -1247,54 +829,39 @@ class MockScatterChartPainter extends _i1.Mock _i6.BuildContext? context, _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.ScatterChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #paint, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#paint, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawSpots( _i6.BuildContext? context, _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.ScatterChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawSpots, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawSpots, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); + + @override + void drawScatterErrorBars( + _i11.CanvasWrapper? canvasWrapper, + _i12.PaintHolder<_i13.ScatterChartData>? holder, + ) => super.noSuchMethod( + Invocation.method(#drawScatterErrorBars, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawTouchTooltips( _i6.BuildContext? context, _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.ScatterChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawTouchTooltips, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawTouchTooltips, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawTouchTooltip( @@ -1303,20 +870,16 @@ class MockScatterChartPainter extends _i1.Mock _i13.ScatterTouchTooltipData? tooltipData, _i13.ScatterSpot? showOnSpot, _i12.PaintHolder<_i13.ScatterChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawTouchTooltip, - [ - context, - canvasWrapper, - tooltipData, - showOnSpot, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawTouchTooltip, [ + context, + canvasWrapper, + tooltipData, + showOnSpot, + holder, + ]), + returnValueForMissingStub: null, + ); @override _i13.ScatterTouchedSpot? handleTouch( @@ -1324,80 +887,47 @@ class MockScatterChartPainter extends _i1.Mock _i2.Size? viewSize, _i12.PaintHolder<_i13.ScatterChartData>? holder, ) => - (super.noSuchMethod(Invocation.method( - #handleTouch, - [ - localPosition, - viewSize, - holder, - ], - )) as _i13.ScatterTouchedSpot?); + (super.noSuchMethod( + Invocation.method(#handleTouch, [localPosition, viewSize, holder]), + ) + as _i13.ScatterTouchedSpot?); @override void drawGrid( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.ScatterChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawGrid, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawGrid, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawBackground( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.ScatterChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawBackground, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawBackground, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawRangeAnnotation( _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.ScatterChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawRangeAnnotation, - [ - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRangeAnnotation, [canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawExtraLines( _i6.BuildContext? context, _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.ScatterChartData>? holder, - ) => - super.noSuchMethod( - Invocation.method( - #drawExtraLines, - [ - context, - canvasWrapper, - holder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawExtraLines, [context, canvasWrapper, holder]), + returnValueForMissingStub: null, + ); @override void drawHorizontalLines( @@ -1405,19 +935,15 @@ class MockScatterChartPainter extends _i1.Mock _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.ScatterChartData>? holder, _i2.Size? viewSize, - ) => - super.noSuchMethod( - Invocation.method( - #drawHorizontalLines, - [ - context, - canvasWrapper, - holder, - viewSize, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawHorizontalLines, [ + context, + canvasWrapper, + holder, + viewSize, + ]), + returnValueForMissingStub: null, + ); @override void drawVerticalLines( @@ -1425,19 +951,15 @@ class MockScatterChartPainter extends _i1.Mock _i11.CanvasWrapper? canvasWrapper, _i12.PaintHolder<_i13.ScatterChartData>? holder, _i2.Size? viewSize, - ) => - super.noSuchMethod( - Invocation.method( - #drawVerticalLines, - [ - context, - canvasWrapper, - holder, - viewSize, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVerticalLines, [ + context, + canvasWrapper, + holder, + viewSize, + ]), + returnValueForMissingStub: null, + ); @override double getPixelX( @@ -1446,16 +968,10 @@ class MockScatterChartPainter extends _i1.Mock _i12.PaintHolder<_i13.ScatterChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #getPixelX, - [ - spotX, - viewSize, - holder, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getPixelX, [spotX, viewSize, holder]), + returnValue: 0.0, + ) + as double); @override double getPixelY( @@ -1464,16 +980,10 @@ class MockScatterChartPainter extends _i1.Mock _i12.PaintHolder<_i13.ScatterChartData>? holder, ) => (super.noSuchMethod( - Invocation.method( - #getPixelY, - [ - spotY, - viewSize, - holder, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getPixelY, [spotY, viewSize, holder]), + returnValue: 0.0, + ) + as double); @override double getTooltipLeft( @@ -1483,15 +993,13 @@ class MockScatterChartPainter extends _i1.Mock double? tooltipHorizontalOffset, ) => (super.noSuchMethod( - Invocation.method( - #getTooltipLeft, - [ - dx, - tooltipWidth, - tooltipHorizontalAlignment, - tooltipHorizontalOffset, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#getTooltipLeft, [ + dx, + tooltipWidth, + tooltipHorizontalAlignment, + tooltipHorizontalOffset, + ]), + returnValue: 0.0, + ) + as double); } diff --git a/test/utils/canvas_wrapper_test.mocks.dart b/test/utils/canvas_wrapper_test.mocks.dart index 94bfa1040..2c601e997 100644 --- a/test/utils/canvas_wrapper_test.mocks.dart +++ b/test/utils/canvas_wrapper_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/utils/canvas_wrapper_test.dart. // Do not manually edit this file. @@ -20,69 +20,40 @@ import 'package:mockito/src/dummies.dart' as _i7; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { - _FakeRect_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeColor_1 extends _i1.SmartFake implements _i2.Color { - _FakeColor_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeColor_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSize_2 extends _i1.SmartFake implements _i2.Size { - _FakeSize_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSize_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeFlDotPainter_3 extends _i1.SmartFake implements _i3.FlDotPainter { - _FakeFlDotPainter_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeFlDotPainter_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeOffset_4 extends _i1.SmartFake implements _i2.Offset { - _FakeOffset_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOffset_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeBorderSide_5 extends _i1.SmartFake implements _i4.BorderSide { - _FakeBorderSide_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeBorderSide_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -90,13 +61,8 @@ class _FakeBorderSide_5 extends _i1.SmartFake implements _i4.BorderSide { } class _FakeTextStyle_6 extends _i1.SmartFake implements _i4.TextStyle { - _FakeTextStyle_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeTextStyle_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i4.DiagnosticLevel? minLevel = _i4.DiagnosticLevel.info}) => @@ -113,331 +79,170 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { @override void save() => super.noSuchMethod( - Invocation.method( - #save, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); @override - void saveLayer( - _i2.Rect? bounds, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #saveLayer, - [ - bounds, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); @override void restore() => super.noSuchMethod( - Invocation.method( - #restore, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); @override void restoreToCount(int? count) => super.noSuchMethod( - Invocation.method( - #restoreToCount, - [count], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); @override - int getSaveCount() => (super.noSuchMethod( - Invocation.method( - #getSaveCount, - [], - ), - returnValue: 0, - ) as int); + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); @override - void translate( - double? dx, - double? dy, - ) => - super.noSuchMethod( - Invocation.method( - #translate, - [ - dx, - dy, - ], - ), - returnValueForMissingStub: null, - ); + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); @override - void scale( - double? sx, [ - double? sy, - ]) => - super.noSuchMethod( - Invocation.method( - #scale, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); @override void rotate(double? radians) => super.noSuchMethod( - Invocation.method( - #rotate, - [radians], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); @override - void skew( - double? sx, - double? sy, - ) => - super.noSuchMethod( - Invocation.method( - #skew, - [ - sx, - sy, - ], - ), - returnValueForMissingStub: null, - ); + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); @override void transform(_i5.Float64List? matrix4) => super.noSuchMethod( - Invocation.method( - #transform, - [matrix4], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); @override - _i5.Float64List getTransform() => (super.noSuchMethod( - Invocation.method( - #getTransform, - [], - ), - returnValue: _i5.Float64List(0), - ) as _i5.Float64List); + _i5.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i5.Float64List(0), + ) + as _i5.Float64List); @override void clipRect( _i2.Rect? rect, { _i2.ClipOp? clipOp = _i2.ClipOp.intersect, bool? doAntiAlias = true, - }) => - super.noSuchMethod( - Invocation.method( - #clipRect, - [rect], - { - #clipOp: clipOp, - #doAntiAlias: doAntiAlias, - }, - ), - returnValueForMissingStub: null, - ); + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); @override - void clipRRect( - _i2.RRect? rrect, { - bool? doAntiAlias = true, - }) => + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipRRect, - [rrect], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - void clipPath( - _i2.Path? path, { - bool? doAntiAlias = true, - }) => + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => super.noSuchMethod( - Invocation.method( - #clipPath, - [path], - {#doAntiAlias: doAntiAlias}, - ), + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), returnValueForMissingStub: null, ); @override - _i2.Rect getLocalClipBounds() => (super.noSuchMethod( - Invocation.method( - #getLocalClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getLocalClipBounds, - [], - ), - ), - ) as _i2.Rect); + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); @override - _i2.Rect getDestinationClipBounds() => (super.noSuchMethod( - Invocation.method( - #getDestinationClipBounds, - [], - ), - returnValue: _FakeRect_0( - this, - Invocation.method( - #getDestinationClipBounds, - [], - ), - ), - ) as _i2.Rect); + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); @override - void drawColor( - _i2.Color? color, - _i2.BlendMode? blendMode, - ) => + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => super.noSuchMethod( - Invocation.method( - #drawColor, - [ - color, - blendMode, - ], - ), + Invocation.method(#drawColor, [color, blendMode]), returnValueForMissingStub: null, ); @override - void drawLine( - _i2.Offset? p1, - _i2.Offset? p2, - _i2.Paint? paint, - ) => + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawLine, - [ - p1, - p2, - paint, - ], - ), + Invocation.method(#drawLine, [p1, p2, paint]), returnValueForMissingStub: null, ); @override void drawPaint(_i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawPaint, - [paint], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); @override - void drawRect( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRect, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawRRect( - _i2.RRect? rrect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRRect, - [ - rrect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); @override - void drawDRRect( - _i2.RRect? outer, - _i2.RRect? inner, - _i2.Paint? paint, - ) => + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawDRRect, - [ - outer, - inner, - paint, - ], - ), + Invocation.method(#drawDRRect, [outer, inner, paint]), returnValueForMissingStub: null, ); @override - void drawOval( - _i2.Rect? rect, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawOval, - [ - rect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); @override - void drawCircle( - _i2.Offset? c, - double? radius, - _i2.Paint? paint, - ) => + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawCircle, - [ - c, - radius, - paint, - ], - ), + Invocation.method(#drawCircle, [c, radius, paint]), returnValueForMissingStub: null, ); @@ -448,52 +253,27 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { double? sweepAngle, bool? useCenter, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawArc, - [ - rect, - startAngle, - sweepAngle, - useCenter, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); @override - void drawPath( - _i2.Path? path, - _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPath, - [ - path, - paint, - ], - ), - returnValueForMissingStub: null, - ); + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); @override - void drawImage( - _i2.Image? image, - _i2.Offset? offset, - _i2.Paint? paint, - ) => + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => super.noSuchMethod( - Invocation.method( - #drawImage, - [ - image, - offset, - paint, - ], - ), + Invocation.method(#drawImage, [image, offset, paint]), returnValueForMissingStub: null, ); @@ -503,19 +283,10 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? src, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageRect, - [ - image, - src, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawImageNine( @@ -523,42 +294,21 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Rect? center, _i2.Rect? dst, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawImageNine, - [ - image, - center, - dst, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); @override void drawPicture(_i2.Picture? picture) => super.noSuchMethod( - Invocation.method( - #drawPicture, - [picture], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); @override - void drawParagraph( - _i2.Paragraph? paragraph, - _i2.Offset? offset, - ) => + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => super.noSuchMethod( - Invocation.method( - #drawParagraph, - [ - paragraph, - offset, - ], - ), + Invocation.method(#drawParagraph, [paragraph, offset]), returnValueForMissingStub: null, ); @@ -567,54 +317,30 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.PointMode? pointMode, List<_i2.Offset>? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawRawPoints( _i2.PointMode? pointMode, _i5.Float32List? points, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawPoints, - [ - pointMode, - points, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); @override void drawVertices( _i2.Vertices? vertices, _i2.BlendMode? blendMode, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawVertices, - [ - vertices, - blendMode, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); @override void drawAtlas( @@ -625,22 +351,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawAtlas, - [ - atlas, - transforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawRawAtlas( @@ -651,22 +373,18 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.BlendMode? blendMode, _i2.Rect? cullRect, _i2.Paint? paint, - ) => - super.noSuchMethod( - Invocation.method( - #drawRawAtlas, - [ - atlas, - rstTransforms, - rects, - colors, - blendMode, - cullRect, - paint, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); @override void drawShadow( @@ -674,19 +392,15 @@ class MockCanvas extends _i1.Mock implements _i2.Canvas { _i2.Color? color, double? elevation, bool? transparentOccluder, - ) => - super.noSuchMethod( - Invocation.method( - #drawShadow, - [ - path, - color, - elevation, - transparentOccluder, - ], - ), - returnValueForMissingStub: null, - ); + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); } /// A class which mocks [FlDotPainter]. @@ -698,80 +412,43 @@ class MockFlDotPainter extends _i1.Mock implements _i3.FlDotPainter { } @override - _i2.Color get mainColor => (super.noSuchMethod( - Invocation.getter(#mainColor), - returnValue: _FakeColor_1( - this, - Invocation.getter(#mainColor), - ), - ) as _i2.Color); + _i2.Color get mainColor => + (super.noSuchMethod( + Invocation.getter(#mainColor), + returnValue: _FakeColor_1(this, Invocation.getter(#mainColor)), + ) + as _i2.Color); @override - List get props => (super.noSuchMethod( - Invocation.getter(#props), - returnValue: [], - ) as List); + List get props => + (super.noSuchMethod(Invocation.getter(#props), returnValue: []) + as List); @override - void draw( - _i2.Canvas? canvas, - _i3.FlSpot? spot, - _i2.Offset? offsetInCanvas, - ) => + void draw(_i2.Canvas? canvas, _i3.FlSpot? spot, _i2.Offset? offsetInCanvas) => super.noSuchMethod( - Invocation.method( - #draw, - [ - canvas, - spot, - offsetInCanvas, - ], - ), + Invocation.method(#draw, [canvas, spot, offsetInCanvas]), returnValueForMissingStub: null, ); @override - _i2.Size getSize(_i3.FlSpot? spot) => (super.noSuchMethod( - Invocation.method( - #getSize, - [spot], - ), - returnValue: _FakeSize_2( - this, - Invocation.method( - #getSize, - [spot], - ), - ), - ) as _i2.Size); + _i2.Size getSize(_i3.FlSpot? spot) => + (super.noSuchMethod( + Invocation.method(#getSize, [spot]), + returnValue: _FakeSize_2(this, Invocation.method(#getSize, [spot])), + ) + as _i2.Size); @override - _i3.FlDotPainter lerp( - _i3.FlDotPainter? a, - _i3.FlDotPainter? b, - double? t, - ) => + _i3.FlDotPainter lerp(_i3.FlDotPainter? a, _i3.FlDotPainter? b, double? t) => (super.noSuchMethod( - Invocation.method( - #lerp, - [ - a, - b, - t, - ], - ), - returnValue: _FakeFlDotPainter_3( - this, - Invocation.method( - #lerp, - [ - a, - b, - t, - ], - ), - ), - ) as _i3.FlDotPainter); + Invocation.method(#lerp, [a, b, t]), + returnValue: _FakeFlDotPainter_3( + this, + Invocation.method(#lerp, [a, b, t]), + ), + ) + as _i3.FlDotPainter); @override bool hitTest( @@ -781,17 +458,15 @@ class MockFlDotPainter extends _i1.Mock implements _i3.FlDotPainter { double? extraThreshold, ) => (super.noSuchMethod( - Invocation.method( - #hitTest, - [ - spot, - touched, - center, - extraThreshold, - ], - ), - returnValue: false, - ) as bool); + Invocation.method(#hitTest, [ + spot, + touched, + center, + extraThreshold, + ]), + returnValue: false, + ) + as bool); } /// A class which mocks [Utils]. @@ -803,91 +478,49 @@ class MockUtils extends _i1.Mock implements _i6.Utils { } @override - double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #radians, - [degrees], - ), - returnValue: 0.0, - ) as double); - - @override - double degrees(double? radians) => (super.noSuchMethod( - Invocation.method( - #degrees, - [radians], - ), - returnValue: 0.0, - ) as double); + double radians(double? degrees) => + (super.noSuchMethod( + Invocation.method(#radians, [degrees]), + returnValue: 0.0, + ) + as double); @override - _i2.Size getDefaultSize(_i2.Size? screenSize) => (super.noSuchMethod( - Invocation.method( - #getDefaultSize, - [screenSize], - ), - returnValue: _FakeSize_2( - this, - Invocation.method( - #getDefaultSize, - [screenSize], - ), - ), - ) as _i2.Size); + double degrees(double? radians) => + (super.noSuchMethod( + Invocation.method(#degrees, [radians]), + returnValue: 0.0, + ) + as double); @override - double translateRotatedPosition( - double? size, - double? degree, - ) => + double translateRotatedPosition(double? size, double? degree) => (super.noSuchMethod( - Invocation.method( - #translateRotatedPosition, - [ - size, - degree, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#translateRotatedPosition, [size, degree]), + returnValue: 0.0, + ) + as double); @override - _i2.Offset calculateRotationOffset( - _i2.Size? size, - double? degree, - ) => + _i2.Offset calculateRotationOffset(_i2.Size? size, double? degree) => (super.noSuchMethod( - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - returnValue: _FakeOffset_4( - this, - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - ), - ) as _i2.Offset); + Invocation.method(#calculateRotationOffset, [size, degree]), + returnValue: _FakeOffset_4( + this, + Invocation.method(#calculateRotationOffset, [size, degree]), + ), + ) + as _i2.Offset); @override _i4.BorderRadius? normalizeBorderRadius( _i4.BorderRadius? borderRadius, double? width, ) => - (super.noSuchMethod(Invocation.method( - #normalizeBorderRadius, - [ - borderRadius, - width, - ], - )) as _i4.BorderRadius?); + (super.noSuchMethod( + Invocation.method(#normalizeBorderRadius, [borderRadius, width]), + ) + as _i4.BorderRadius?); @override _i4.BorderSide normalizeBorderSide( @@ -895,24 +528,13 @@ class MockUtils extends _i1.Mock implements _i6.Utils { double? width, ) => (super.noSuchMethod( - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - returnValue: _FakeBorderSide_5( - this, - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - ), - ) as _i4.BorderSide); + Invocation.method(#normalizeBorderSide, [borderSide, width]), + returnValue: _FakeBorderSide_5( + this, + Invocation.method(#normalizeBorderSide, [borderSide, width]), + ), + ) + as _i4.BorderSide); @override double getEfficientInterval( @@ -921,62 +543,41 @@ class MockUtils extends _i1.Mock implements _i6.Utils { double? pixelPerInterval = 40.0, }) => (super.noSuchMethod( - Invocation.method( - #getEfficientInterval, - [ - axisViewSize, - diffInAxis, - ], - {#pixelPerInterval: pixelPerInterval}, - ), - returnValue: 0.0, - ) as double); + Invocation.method( + #getEfficientInterval, + [axisViewSize, diffInAxis], + {#pixelPerInterval: pixelPerInterval}, + ), + returnValue: 0.0, + ) + as double); @override - double roundInterval(double? input) => (super.noSuchMethod( - Invocation.method( - #roundInterval, - [input], - ), - returnValue: 0.0, - ) as double); + double roundInterval(double? input) => + (super.noSuchMethod( + Invocation.method(#roundInterval, [input]), + returnValue: 0.0, + ) + as double); @override - int getFractionDigits(double? value) => (super.noSuchMethod( - Invocation.method( - #getFractionDigits, - [value], - ), - returnValue: 0, - ) as int); + int getFractionDigits(double? value) => + (super.noSuchMethod( + Invocation.method(#getFractionDigits, [value]), + returnValue: 0, + ) + as int); @override - String formatNumber( - double? axisMin, - double? axisMax, - double? axisValue, - ) => + String formatNumber(double? axisMin, double? axisMax, double? axisValue) => (super.noSuchMethod( - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - returnValue: _i7.dummyValue( - this, - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - ), - ) as String); + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + returnValue: _i7.dummyValue( + this, + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + ), + ) + as String); @override _i4.TextStyle getThemeAwareTextStyle( @@ -984,24 +585,19 @@ class MockUtils extends _i1.Mock implements _i6.Utils { _i4.TextStyle? providedStyle, ) => (super.noSuchMethod( - Invocation.method( - #getThemeAwareTextStyle, - [ - context, - providedStyle, - ], - ), - returnValue: _FakeTextStyle_6( - this, - Invocation.method( - #getThemeAwareTextStyle, - [ + Invocation.method(#getThemeAwareTextStyle, [ context, providedStyle, - ], - ), - ), - ) as _i4.TextStyle); + ]), + returnValue: _FakeTextStyle_6( + this, + Invocation.method(#getThemeAwareTextStyle, [ + context, + providedStyle, + ]), + ), + ) + as _i4.TextStyle); @override double getBestInitialIntervalValue( @@ -1011,24 +607,20 @@ class MockUtils extends _i1.Mock implements _i6.Utils { double? baseline = 0.0, }) => (super.noSuchMethod( - Invocation.method( - #getBestInitialIntervalValue, - [ - min, - max, - interval, - ], - {#baseline: baseline}, - ), - returnValue: 0.0, - ) as double); + Invocation.method( + #getBestInitialIntervalValue, + [min, max, interval], + {#baseline: baseline}, + ), + returnValue: 0.0, + ) + as double); @override - double convertRadiusToSigma(double? radius) => (super.noSuchMethod( - Invocation.method( - #convertRadiusToSigma, - [radius], - ), - returnValue: 0.0, - ) as double); + double convertRadiusToSigma(double? radius) => + (super.noSuchMethod( + Invocation.method(#convertRadiusToSigma, [radius]), + returnValue: 0.0, + ) + as double); } diff --git a/test/utils/utils_test.mocks.dart b/test/utils/utils_test.mocks.dart index 7f2956778..320b49ec2 100644 --- a/test/utils/utils_test.mocks.dart +++ b/test/utils/utils_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in fl_chart/test/utils/utils_test.dart. // Do not manually edit this file. @@ -19,104 +19,64 @@ import 'package:mockito/src/dummies.dart' as _i6; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeSize_0 extends _i1.SmartFake implements _i2.Size { - _FakeSize_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeOffset_0 extends _i1.SmartFake implements _i2.Offset { + _FakeOffset_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } -class _FakeOffset_1 extends _i1.SmartFake implements _i2.Offset { - _FakeOffset_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeBorderSide_2 extends _i1.SmartFake implements _i3.BorderSide { - _FakeBorderSide_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeBorderSide_1 extends _i1.SmartFake implements _i3.BorderSide { + _FakeBorderSide_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString(); } -class _FakeTextStyle_3 extends _i1.SmartFake implements _i3.TextStyle { - _FakeTextStyle_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeTextStyle_2 extends _i1.SmartFake implements _i3.TextStyle { + _FakeTextStyle_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString(); } -class _FakeWidget_4 extends _i1.SmartFake implements _i3.Widget { - _FakeWidget_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); +class _FakeWidget_3 extends _i1.SmartFake implements _i3.Widget { + _FakeWidget_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString(); } -class _FakeInheritedWidget_5 extends _i1.SmartFake +class _FakeInheritedWidget_4 extends _i1.SmartFake implements _i3.InheritedWidget { - _FakeInheritedWidget_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeInheritedWidget_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => super.toString(); } -class _FakeDiagnosticsNode_6 extends _i1.SmartFake +class _FakeDiagnosticsNode_5 extends _i1.SmartFake implements _i3.DiagnosticsNode { - _FakeDiagnosticsNode_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDiagnosticsNode_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({ _i4.TextTreeConfiguration? parentConfiguration, _i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info, - }) => - super.toString(); + }) => super.toString(); } /// A class which mocks [Utils]. @@ -128,91 +88,49 @@ class MockUtils extends _i1.Mock implements _i5.Utils { } @override - double radians(double? degrees) => (super.noSuchMethod( - Invocation.method( - #radians, - [degrees], - ), - returnValue: 0.0, - ) as double); - - @override - double degrees(double? radians) => (super.noSuchMethod( - Invocation.method( - #degrees, - [radians], - ), - returnValue: 0.0, - ) as double); + double radians(double? degrees) => + (super.noSuchMethod( + Invocation.method(#radians, [degrees]), + returnValue: 0.0, + ) + as double); @override - _i2.Size getDefaultSize(_i2.Size? screenSize) => (super.noSuchMethod( - Invocation.method( - #getDefaultSize, - [screenSize], - ), - returnValue: _FakeSize_0( - this, - Invocation.method( - #getDefaultSize, - [screenSize], - ), - ), - ) as _i2.Size); + double degrees(double? radians) => + (super.noSuchMethod( + Invocation.method(#degrees, [radians]), + returnValue: 0.0, + ) + as double); @override - double translateRotatedPosition( - double? size, - double? degree, - ) => + double translateRotatedPosition(double? size, double? degree) => (super.noSuchMethod( - Invocation.method( - #translateRotatedPosition, - [ - size, - degree, - ], - ), - returnValue: 0.0, - ) as double); + Invocation.method(#translateRotatedPosition, [size, degree]), + returnValue: 0.0, + ) + as double); @override - _i2.Offset calculateRotationOffset( - _i2.Size? size, - double? degree, - ) => + _i2.Offset calculateRotationOffset(_i2.Size? size, double? degree) => (super.noSuchMethod( - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - returnValue: _FakeOffset_1( - this, - Invocation.method( - #calculateRotationOffset, - [ - size, - degree, - ], - ), - ), - ) as _i2.Offset); + Invocation.method(#calculateRotationOffset, [size, degree]), + returnValue: _FakeOffset_0( + this, + Invocation.method(#calculateRotationOffset, [size, degree]), + ), + ) + as _i2.Offset); @override _i3.BorderRadius? normalizeBorderRadius( _i3.BorderRadius? borderRadius, double? width, ) => - (super.noSuchMethod(Invocation.method( - #normalizeBorderRadius, - [ - borderRadius, - width, - ], - )) as _i3.BorderRadius?); + (super.noSuchMethod( + Invocation.method(#normalizeBorderRadius, [borderRadius, width]), + ) + as _i3.BorderRadius?); @override _i3.BorderSide normalizeBorderSide( @@ -220,24 +138,13 @@ class MockUtils extends _i1.Mock implements _i5.Utils { double? width, ) => (super.noSuchMethod( - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - returnValue: _FakeBorderSide_2( - this, - Invocation.method( - #normalizeBorderSide, - [ - borderSide, - width, - ], - ), - ), - ) as _i3.BorderSide); + Invocation.method(#normalizeBorderSide, [borderSide, width]), + returnValue: _FakeBorderSide_1( + this, + Invocation.method(#normalizeBorderSide, [borderSide, width]), + ), + ) + as _i3.BorderSide); @override double getEfficientInterval( @@ -246,62 +153,41 @@ class MockUtils extends _i1.Mock implements _i5.Utils { double? pixelPerInterval = 40.0, }) => (super.noSuchMethod( - Invocation.method( - #getEfficientInterval, - [ - axisViewSize, - diffInAxis, - ], - {#pixelPerInterval: pixelPerInterval}, - ), - returnValue: 0.0, - ) as double); + Invocation.method( + #getEfficientInterval, + [axisViewSize, diffInAxis], + {#pixelPerInterval: pixelPerInterval}, + ), + returnValue: 0.0, + ) + as double); @override - double roundInterval(double? input) => (super.noSuchMethod( - Invocation.method( - #roundInterval, - [input], - ), - returnValue: 0.0, - ) as double); + double roundInterval(double? input) => + (super.noSuchMethod( + Invocation.method(#roundInterval, [input]), + returnValue: 0.0, + ) + as double); @override - int getFractionDigits(double? value) => (super.noSuchMethod( - Invocation.method( - #getFractionDigits, - [value], - ), - returnValue: 0, - ) as int); + int getFractionDigits(double? value) => + (super.noSuchMethod( + Invocation.method(#getFractionDigits, [value]), + returnValue: 0, + ) + as int); @override - String formatNumber( - double? axisMin, - double? axisMax, - double? axisValue, - ) => + String formatNumber(double? axisMin, double? axisMax, double? axisValue) => (super.noSuchMethod( - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - returnValue: _i6.dummyValue( - this, - Invocation.method( - #formatNumber, - [ - axisMin, - axisMax, - axisValue, - ], - ), - ), - ) as String); + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + returnValue: _i6.dummyValue( + this, + Invocation.method(#formatNumber, [axisMin, axisMax, axisValue]), + ), + ) + as String); @override _i3.TextStyle getThemeAwareTextStyle( @@ -309,24 +195,19 @@ class MockUtils extends _i1.Mock implements _i5.Utils { _i3.TextStyle? providedStyle, ) => (super.noSuchMethod( - Invocation.method( - #getThemeAwareTextStyle, - [ - context, - providedStyle, - ], - ), - returnValue: _FakeTextStyle_3( - this, - Invocation.method( - #getThemeAwareTextStyle, - [ + Invocation.method(#getThemeAwareTextStyle, [ context, providedStyle, - ], - ), - ), - ) as _i3.TextStyle); + ]), + returnValue: _FakeTextStyle_2( + this, + Invocation.method(#getThemeAwareTextStyle, [ + context, + providedStyle, + ]), + ), + ) + as _i3.TextStyle); @override double getBestInitialIntervalValue( @@ -336,26 +217,22 @@ class MockUtils extends _i1.Mock implements _i5.Utils { double? baseline = 0.0, }) => (super.noSuchMethod( - Invocation.method( - #getBestInitialIntervalValue, - [ - min, - max, - interval, - ], - {#baseline: baseline}, - ), - returnValue: 0.0, - ) as double); + Invocation.method( + #getBestInitialIntervalValue, + [min, max, interval], + {#baseline: baseline}, + ), + returnValue: 0.0, + ) + as double); @override - double convertRadiusToSigma(double? radius) => (super.noSuchMethod( - Invocation.method( - #convertRadiusToSigma, - [radius], - ), - returnValue: 0.0, - ) as double); + double convertRadiusToSigma(double? radius) => + (super.noSuchMethod( + Invocation.method(#convertRadiusToSigma, [radius]), + returnValue: 0.0, + ) + as double); } /// A class which mocks [BuildContext]. @@ -367,25 +244,25 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { } @override - _i3.Widget get widget => (super.noSuchMethod( - Invocation.getter(#widget), - returnValue: _FakeWidget_4( - this, - Invocation.getter(#widget), - ), - ) as _i3.Widget); + _i3.Widget get widget => + (super.noSuchMethod( + Invocation.getter(#widget), + returnValue: _FakeWidget_3(this, Invocation.getter(#widget)), + ) + as _i3.Widget); @override - bool get mounted => (super.noSuchMethod( - Invocation.getter(#mounted), - returnValue: false, - ) as bool); + bool get mounted => + (super.noSuchMethod(Invocation.getter(#mounted), returnValue: false) + as bool); @override - bool get debugDoingBuild => (super.noSuchMethod( - Invocation.getter(#debugDoingBuild), - returnValue: false, - ) as bool); + bool get debugDoingBuild => + (super.noSuchMethod( + Invocation.getter(#debugDoingBuild), + returnValue: false, + ) + as bool); @override _i3.InheritedWidget dependOnInheritedElement( @@ -393,47 +270,39 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { Object? aspect, }) => (super.noSuchMethod( - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - returnValue: _FakeInheritedWidget_5( - this, - Invocation.method( - #dependOnInheritedElement, - [ancestor], - {#aspect: aspect}, - ), - ), - ) as _i3.InheritedWidget); + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + returnValue: _FakeInheritedWidget_4( + this, + Invocation.method( + #dependOnInheritedElement, + [ancestor], + {#aspect: aspect}, + ), + ), + ) + as _i3.InheritedWidget); @override void visitAncestorElements(_i3.ConditionalElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitAncestorElements, - [visitor], - ), + Invocation.method(#visitAncestorElements, [visitor]), returnValueForMissingStub: null, ); @override void visitChildElements(_i3.ElementVisitor? visitor) => super.noSuchMethod( - Invocation.method( - #visitChildElements, - [visitor], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#visitChildElements, [visitor]), + returnValueForMissingStub: null, + ); @override void dispatchNotification(_i3.Notification? notification) => super.noSuchMethod( - Invocation.method( - #dispatchNotification, - [notification], - ), + Invocation.method(#dispatchNotification, [notification]), returnValueForMissingStub: null, ); @@ -443,20 +312,13 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_6( - this, - Invocation.method( - #describeElement, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeElement, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeElement, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); @override _i3.DiagnosticsNode describeWidget( @@ -464,46 +326,34 @@ class MockBuildContext extends _i1.Mock implements _i3.BuildContext { _i4.DiagnosticsTreeStyle? style = _i4.DiagnosticsTreeStyle.errorProperty, }) => (super.noSuchMethod( - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - returnValue: _FakeDiagnosticsNode_6( - this, - Invocation.method( - #describeWidget, - [name], - {#style: style}, - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeWidget, [name], {#style: style}), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeWidget, [name], {#style: style}), + ), + ) + as _i3.DiagnosticsNode); @override - List<_i3.DiagnosticsNode> describeMissingAncestor( - {required Type? expectedAncestorType}) => + List<_i3.DiagnosticsNode> describeMissingAncestor({ + required Type? expectedAncestorType, + }) => (super.noSuchMethod( - Invocation.method( - #describeMissingAncestor, - [], - {#expectedAncestorType: expectedAncestorType}, - ), - returnValue: <_i3.DiagnosticsNode>[], - ) as List<_i3.DiagnosticsNode>); + Invocation.method(#describeMissingAncestor, [], { + #expectedAncestorType: expectedAncestorType, + }), + returnValue: <_i3.DiagnosticsNode>[], + ) + as List<_i3.DiagnosticsNode>); @override _i3.DiagnosticsNode describeOwnershipChain(String? name) => (super.noSuchMethod( - Invocation.method( - #describeOwnershipChain, - [name], - ), - returnValue: _FakeDiagnosticsNode_6( - this, - Invocation.method( - #describeOwnershipChain, - [name], - ), - ), - ) as _i3.DiagnosticsNode); + Invocation.method(#describeOwnershipChain, [name]), + returnValue: _FakeDiagnosticsNode_5( + this, + Invocation.method(#describeOwnershipChain, [name]), + ), + ) + as _i3.DiagnosticsNode); } From c1a4e294c918f35b7ae59f31ccda01d90915cc1e Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 16 Jan 2025 00:25:59 +0100 Subject: [PATCH 23/27] Add some unit-tests in line_chart_painter_test.dart --- .../line_chart/line_chart_painter_test.dart | 150 ++++++++++++++++++ 1 file changed, 150 insertions(+) diff --git a/test/chart/line_chart/line_chart_painter_test.dart b/test/chart/line_chart/line_chart_painter_test.dart index a20caea73..b37b11048 100644 --- a/test/chart/line_chart/line_chart_painter_test.dart +++ b/test/chart/line_chart/line_chart_painter_test.dart @@ -785,6 +785,156 @@ void main() { }); }); + group('drawErrorIndicatorData()', () { + test('test - not showing error indicators', () { + const viewSize = Size(400, 400); + + final barData = LineChartBarData( + spots: [ + const FlSpot( + 1, + 1, + xError: FlErrorRange(lowerBy: 1, upperBy: 1), + ), + ], + errorIndicatorData: const FlErrorIndicatorData( + show: false, + ), + ); + + final data = LineChartData( + lineBarsData: [ + barData, + ], + ); + + final lineChartPainter = LineChartPainter(); + final holder = + PaintHolder(data, data, TextScaler.noScaling); + final mockCanvasWrapper = MockCanvasWrapper(); + when(mockCanvasWrapper.size).thenAnswer((realInvocation) => viewSize); + when(mockCanvasWrapper.canvas).thenReturn(MockCanvas()); + + lineChartPainter.drawErrorIndicatorData( + mockCanvasWrapper, + barData, + holder, + ); + + verifyNever( + mockCanvasWrapper.drawErrorIndicator(any, any, any, any, any), + ); + }); + + test('test 2 - showing error indicators with single call', () { + const viewSize = Size(400, 400); + + final barData = LineChartBarData( + spots: [ + const FlSpot( + 1, + 1, + xError: FlErrorRange(lowerBy: 1, upperBy: 1), + ), + ], + ); + + final data = LineChartData( + lineBarsData: [ + barData, + ], + ); + + final lineChartPainter = LineChartPainter(); + final holder = + PaintHolder(data, data, TextScaler.noScaling); + final mockCanvasWrapper = MockCanvasWrapper(); + when(mockCanvasWrapper.size).thenAnswer((realInvocation) => viewSize); + when(mockCanvasWrapper.canvas).thenReturn(MockCanvas()); + + lineChartPainter.drawErrorIndicatorData( + mockCanvasWrapper, + barData, + holder, + ); + + verify( + mockCanvasWrapper.drawErrorIndicator(any, any, any, any, any), + ).called(1); + }); + + test('test 3 - different values for different spots', () { + const viewSize = Size(400, 400); + + final colors = [ + Colors.red, + Colors.green, + Colors.blue, + Colors.yellow, + Colors.purple, + ]; + final spots = [ + const FlSpot(1, 1, xError: FlErrorRange.symmetric(1)), + const FlSpot(2, 2, xError: FlErrorRange.symmetric(2)), + const FlSpot(3, 3, xError: FlErrorRange.symmetric(3)), + const FlSpot(4, 2, xError: FlErrorRange.symmetric(2)), + const FlSpot(5, 1, xError: FlErrorRange.symmetric(1)), + ]; + final barData = LineChartBarData( + spots: spots, + errorIndicatorData: FlErrorIndicatorData( + painter: (input) => FlSimpleErrorPainter( + lineColor: colors[input.spotIndex], + lineWidth: input.spotIndex.toDouble(), + capLength: 10, + crossAlignment: input.spotIndex / spots.length, + showErrorTexts: true, + errorTextDirection: TextDirection.rtl, + errorTextStyle: TextStyle( + color: colors[input.spotIndex], + fontSize: input.spot.y, + ), + ), + ), + ); + + final data = LineChartData( + lineBarsData: [ + barData, + ], + ); + + final lineChartPainter = LineChartPainter(); + final holder = + PaintHolder(data, data, TextScaler.noScaling); + final mockCanvasWrapper = MockCanvasWrapper(); + when(mockCanvasWrapper.size).thenAnswer((realInvocation) => viewSize); + when(mockCanvasWrapper.canvas).thenReturn(MockCanvas()); + + lineChartPainter.drawErrorIndicatorData( + mockCanvasWrapper, + barData, + holder, + ); + + final result = verify( + mockCanvasWrapper.drawErrorIndicator(captureAny, any, any, any, any), + )..called(5); + for (var i = 0; i < result.captured.length; i++) { + final captured = result.captured[i] as FlSimpleErrorPainter; + expect(captured.lineColor, colors[i]); + expect(captured.lineWidth, i.toDouble()); + expect(captured.capLength, 10); + expect(captured.crossAlignment, i / spots.length); + expect(captured.showErrorTexts, true); + expect(captured.errorTextDirection, TextDirection.rtl); + expect(captured.errorTextStyle.color, colors[i]); + expect(captured.errorTextStyle.fontSize, spots[i].y); + } + verifyNever(mockCanvasWrapper.drawText(any, any, any)); + }); + }); + group('drawTouchedSpotsIndicator()', () { List getDrawingInfo(LineChartData data) { final lineIndexDrawingInfo = []; From 553f0a192cc1fa45605f125475bf9e0926206249 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 16 Jan 2025 00:38:47 +0100 Subject: [PATCH 24/27] Update the `make format` and `make checkFormat` commands to exclude the generated files --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 75d7eb910..d046ebeee 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,20 @@ +ifeq ($(OS),Windows_NT) + FIND_CMD=dir /S /B lib\*.dart test\*.dart | findstr /V .mocks.dart +else + FIND_CMD=find lib test -name '*.dart' -not -name '*.mocks.dart' +endif + analyze: flutter analyze checkFormat: - dart format -o none --set-exit-if-changed . + dart format -o none --set-exit-if-changed $$( $(FIND_CMD) ) checkstyle: make analyze && make checkFormat format: - dart format . + dart format $$( $(FIND_CMD) ) runTests: flutter test From 8e56e73dd98a1fb5f54f15f4a0fd8ffa25966ab7 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 16 Jan 2025 00:41:51 +0100 Subject: [PATCH 25/27] Add errorIndicatorData in our mockData (to check the equality) --- test/chart/data_pool.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/chart/data_pool.dart b/test/chart/data_pool.dart index 86280c112..9924969a6 100644 --- a/test/chart/data_pool.dart +++ b/test/chart/data_pool.dart @@ -831,6 +831,9 @@ final LineChartBarData lineChartBarData1 = LineChartBarData( isStrokeCapRound: true, preventCurveOvershootingThreshold: 1.2, showingIndicators: [0, 1], + errorIndicatorData: const FlErrorIndicatorData( + show: false, + ), ); final LineChartBarData lineChartBarData1Clone = LineChartBarData( dashArray: [0, 1], @@ -853,6 +856,9 @@ final LineChartBarData lineChartBarData1Clone = LineChartBarData( isStrokeCapRound: true, preventCurveOvershootingThreshold: 1.2, showingIndicators: [0, 1], + errorIndicatorData: const FlErrorIndicatorData( + show: false, + ), ); final LineChartBarData lineChartBarData2 = LineChartBarData( From ff78b83d40b6fd2c300785611a5fdbb86290d900 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 16 Jan 2025 01:10:59 +0100 Subject: [PATCH 26/27] Add some unit-tests for the FlSpotErrorRangePainter --- .../base/axis_chart/axis_chart_data_test.dart | 102 +++++ .../axis_chart_data_test.mocks.dart | 362 ++++++++++++++++++ 2 files changed, 464 insertions(+) create mode 100644 test/chart/base/axis_chart/axis_chart_data_test.mocks.dart diff --git a/test/chart/base/axis_chart/axis_chart_data_test.dart b/test/chart/base/axis_chart/axis_chart_data_test.dart index ef6b4386c..1775c89d1 100644 --- a/test/chart/base/axis_chart/axis_chart_data_test.dart +++ b/test/chart/base/axis_chart/axis_chart_data_test.dart @@ -1,8 +1,12 @@ import 'package:fl_chart/fl_chart.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; +import 'package:mockito/annotations.dart'; +import 'package:mockito/mockito.dart'; import '../../data_pool.dart'; +import 'axis_chart_data_test.mocks.dart'; +@GenerateMocks([Canvas]) void main() { group('AxisChartData data equality check', () { test('AxisTitle equality test', () { @@ -281,5 +285,103 @@ void main() { false, ); }); + + test('FlSpotErrorRangePainter equality', () { + final FlSpotErrorRangePainter painter1 = FlSimpleErrorPainter(); + final painter2 = FlSimpleErrorPainter(); + final painter3 = FlSimpleErrorPainter( + lineWidth: 1.1, + ); + expect(painter1 == painter2, true); + expect(painter1 != painter3, true); + }); + + test('FlSpotErrorRangePainter render functionality (without texts)', () { + final painter = FlSimpleErrorPainter( + lineWidth: 5.3, + lineColor: Colors.green, + capLength: 10, + ); + final mockCanvas = MockCanvas(); + const offsetInCanvas = Offset(24, 34); + const origin = FlSpot(4, 1); + + painter.draw( + mockCanvas, + offsetInCanvas, + origin, + const Rect.fromLTWH(0, 4, 0, 6), + LineChartData(), + ); + verify( + mockCanvas.drawLine( + captureAny, + captureAny, + captureAny, + ), + ).called(3); + + painter.draw( + mockCanvas, + offsetInCanvas, + origin, + const Rect.fromLTWH(4, 4, 6, 6), + LineChartData(), + ); + final result = verify( + mockCanvas.drawLine( + captureAny, + captureAny, + any, + ), + )..called(6); + expect(result.captured[0], const Offset(24, 38)); + expect(result.captured[1], const Offset(24, 44)); + expect(result.captured[2], const Offset(19, 38)); + expect(result.captured[3], const Offset(29, 38)); + expect(result.captured[4], const Offset(19, 44)); + expect(result.captured[5], const Offset(29, 44)); + expect(result.captured[6], const Offset(28, 34)); + expect(result.captured[7], const Offset(34, 34)); + expect(result.captured[8], const Offset(28, 29)); + expect(result.captured[9], const Offset(28, 39)); + + verifyNever(mockCanvas.drawParagraph(any, any)); + }); + + test('FlSpotErrorRangePainter render functionality (with texts)', () { + final painter = FlSimpleErrorPainter( + showErrorTexts: true, + errorTextDirection: TextDirection.rtl, + errorTextStyle: const TextStyle( + color: Colors.red, + fontSize: 12, + ), + ); + final mockCanvas = MockCanvas(); + + painter.draw( + mockCanvas, + const Offset(24, 34), + const FlSpot( + 4, + 1, + xError: FlErrorRange.symmetric(1), + yError: FlErrorRange.symmetric(1), + ), + const Rect.fromLTWH(4, 4, 6, 6), + LineChartData(), + ); + verify( + mockCanvas.drawLine( + captureAny, + captureAny, + any, + ), + ).called(6); + verify( + mockCanvas.drawParagraph(captureAny, captureAny), + ).called(4); + }); }); } diff --git a/test/chart/base/axis_chart/axis_chart_data_test.mocks.dart b/test/chart/base/axis_chart/axis_chart_data_test.mocks.dart new file mode 100644 index 000000000..cc318353f --- /dev/null +++ b/test/chart/base/axis_chart/axis_chart_data_test.mocks.dart @@ -0,0 +1,362 @@ +// Mocks generated by Mockito 5.4.5 from annotations +// in fl_chart/test/chart/base/axis_chart/axis_chart_data_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:typed_data' as _i3; +import 'dart:ui' as _i2; + +import 'package:mockito/mockito.dart' as _i1; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +class _FakeRect_0 extends _i1.SmartFake implements _i2.Rect { + _FakeRect_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +/// A class which mocks [Canvas]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockCanvas extends _i1.Mock implements _i2.Canvas { + MockCanvas() { + _i1.throwOnMissingStub(this); + } + + @override + void save() => super.noSuchMethod( + Invocation.method(#save, []), + returnValueForMissingStub: null, + ); + + @override + void saveLayer(_i2.Rect? bounds, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#saveLayer, [bounds, paint]), + returnValueForMissingStub: null, + ); + + @override + void restore() => super.noSuchMethod( + Invocation.method(#restore, []), + returnValueForMissingStub: null, + ); + + @override + void restoreToCount(int? count) => super.noSuchMethod( + Invocation.method(#restoreToCount, [count]), + returnValueForMissingStub: null, + ); + + @override + int getSaveCount() => + (super.noSuchMethod(Invocation.method(#getSaveCount, []), returnValue: 0) + as int); + + @override + void translate(double? dx, double? dy) => super.noSuchMethod( + Invocation.method(#translate, [dx, dy]), + returnValueForMissingStub: null, + ); + + @override + void scale(double? sx, [double? sy]) => super.noSuchMethod( + Invocation.method(#scale, [sx, sy]), + returnValueForMissingStub: null, + ); + + @override + void rotate(double? radians) => super.noSuchMethod( + Invocation.method(#rotate, [radians]), + returnValueForMissingStub: null, + ); + + @override + void skew(double? sx, double? sy) => super.noSuchMethod( + Invocation.method(#skew, [sx, sy]), + returnValueForMissingStub: null, + ); + + @override + void transform(_i3.Float64List? matrix4) => super.noSuchMethod( + Invocation.method(#transform, [matrix4]), + returnValueForMissingStub: null, + ); + + @override + _i3.Float64List getTransform() => + (super.noSuchMethod( + Invocation.method(#getTransform, []), + returnValue: _i3.Float64List(0), + ) + as _i3.Float64List); + + @override + void clipRect( + _i2.Rect? rect, { + _i2.ClipOp? clipOp = _i2.ClipOp.intersect, + bool? doAntiAlias = true, + }) => super.noSuchMethod( + Invocation.method( + #clipRect, + [rect], + {#clipOp: clipOp, #doAntiAlias: doAntiAlias}, + ), + returnValueForMissingStub: null, + ); + + @override + void clipRRect(_i2.RRect? rrect, {bool? doAntiAlias = true}) => + super.noSuchMethod( + Invocation.method(#clipRRect, [rrect], {#doAntiAlias: doAntiAlias}), + returnValueForMissingStub: null, + ); + + @override + void clipPath(_i2.Path? path, {bool? doAntiAlias = true}) => + super.noSuchMethod( + Invocation.method(#clipPath, [path], {#doAntiAlias: doAntiAlias}), + returnValueForMissingStub: null, + ); + + @override + _i2.Rect getLocalClipBounds() => + (super.noSuchMethod( + Invocation.method(#getLocalClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getLocalClipBounds, []), + ), + ) + as _i2.Rect); + + @override + _i2.Rect getDestinationClipBounds() => + (super.noSuchMethod( + Invocation.method(#getDestinationClipBounds, []), + returnValue: _FakeRect_0( + this, + Invocation.method(#getDestinationClipBounds, []), + ), + ) + as _i2.Rect); + + @override + void drawColor(_i2.Color? color, _i2.BlendMode? blendMode) => + super.noSuchMethod( + Invocation.method(#drawColor, [color, blendMode]), + returnValueForMissingStub: null, + ); + + @override + void drawLine(_i2.Offset? p1, _i2.Offset? p2, _i2.Paint? paint) => + super.noSuchMethod( + Invocation.method(#drawLine, [p1, p2, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawPaint(_i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPaint, [paint]), + returnValueForMissingStub: null, + ); + + @override + void drawRect(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRect, [rect, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawRRect(_i2.RRect? rrect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawRRect, [rrect, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawDRRect(_i2.RRect? outer, _i2.RRect? inner, _i2.Paint? paint) => + super.noSuchMethod( + Invocation.method(#drawDRRect, [outer, inner, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawOval(_i2.Rect? rect, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawOval, [rect, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawCircle(_i2.Offset? c, double? radius, _i2.Paint? paint) => + super.noSuchMethod( + Invocation.method(#drawCircle, [c, radius, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawArc( + _i2.Rect? rect, + double? startAngle, + double? sweepAngle, + bool? useCenter, + _i2.Paint? paint, + ) => super.noSuchMethod( + Invocation.method(#drawArc, [ + rect, + startAngle, + sweepAngle, + useCenter, + paint, + ]), + returnValueForMissingStub: null, + ); + + @override + void drawPath(_i2.Path? path, _i2.Paint? paint) => super.noSuchMethod( + Invocation.method(#drawPath, [path, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawImage(_i2.Image? image, _i2.Offset? offset, _i2.Paint? paint) => + super.noSuchMethod( + Invocation.method(#drawImage, [image, offset, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawImageRect( + _i2.Image? image, + _i2.Rect? src, + _i2.Rect? dst, + _i2.Paint? paint, + ) => super.noSuchMethod( + Invocation.method(#drawImageRect, [image, src, dst, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawImageNine( + _i2.Image? image, + _i2.Rect? center, + _i2.Rect? dst, + _i2.Paint? paint, + ) => super.noSuchMethod( + Invocation.method(#drawImageNine, [image, center, dst, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawPicture(_i2.Picture? picture) => super.noSuchMethod( + Invocation.method(#drawPicture, [picture]), + returnValueForMissingStub: null, + ); + + @override + void drawParagraph(_i2.Paragraph? paragraph, _i2.Offset? offset) => + super.noSuchMethod( + Invocation.method(#drawParagraph, [paragraph, offset]), + returnValueForMissingStub: null, + ); + + @override + void drawPoints( + _i2.PointMode? pointMode, + List<_i2.Offset>? points, + _i2.Paint? paint, + ) => super.noSuchMethod( + Invocation.method(#drawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawRawPoints( + _i2.PointMode? pointMode, + _i3.Float32List? points, + _i2.Paint? paint, + ) => super.noSuchMethod( + Invocation.method(#drawRawPoints, [pointMode, points, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawVertices( + _i2.Vertices? vertices, + _i2.BlendMode? blendMode, + _i2.Paint? paint, + ) => super.noSuchMethod( + Invocation.method(#drawVertices, [vertices, blendMode, paint]), + returnValueForMissingStub: null, + ); + + @override + void drawAtlas( + _i2.Image? atlas, + List<_i2.RSTransform>? transforms, + List<_i2.Rect>? rects, + List<_i2.Color>? colors, + _i2.BlendMode? blendMode, + _i2.Rect? cullRect, + _i2.Paint? paint, + ) => super.noSuchMethod( + Invocation.method(#drawAtlas, [ + atlas, + transforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); + + @override + void drawRawAtlas( + _i2.Image? atlas, + _i3.Float32List? rstTransforms, + _i3.Float32List? rects, + _i3.Int32List? colors, + _i2.BlendMode? blendMode, + _i2.Rect? cullRect, + _i2.Paint? paint, + ) => super.noSuchMethod( + Invocation.method(#drawRawAtlas, [ + atlas, + rstTransforms, + rects, + colors, + blendMode, + cullRect, + paint, + ]), + returnValueForMissingStub: null, + ); + + @override + void drawShadow( + _i2.Path? path, + _i2.Color? color, + double? elevation, + bool? transparentOccluder, + ) => super.noSuchMethod( + Invocation.method(#drawShadow, [ + path, + color, + elevation, + transparentOccluder, + ]), + returnValueForMissingStub: null, + ); +} From d0909947ca67f9da6c82396d9290a39f72a63721 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Thu, 16 Jan 2025 01:20:56 +0100 Subject: [PATCH 27/27] Update the CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5f8f9c05..af2771497 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## newVersion +* **FEATURE** (by @imaNNeo) Add error range feature in our axis-based charts. You can set `xError` and `yError` in the [FlSpot](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/base_chart.md#flspot) or `toYErrorRange` in [BarChartRodData](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/bar_chart.md#barchartroddata). Also we have `errorIndicatorData` property in our [LineChartData](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/line_chart.md#linechartdata), [BarChartData](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/bar_chart.md#barchartdata) and [ScatterChartData](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/scatter_chart.md#scatterchartdata) that is responsible to render the error bars. You can take a look at the [LineChartSample 13](https://github.com/imaNNeo/fl_chart/blob/main/example/lib/presentation/samples/line/line_chart_sample13.dart) and [BarChartSample 8](https://github.com/imaNNeo/fl_chart/blob/main/example/lib/presentation/samples/bar/bar_chart_sample8.dart) in our [sample app](https://app.flchart.dev), #1483 + ## 0.70.1 * **FEATURE** (by @Peetee06) Add `panEnabled` and `scaleEnabled` properties in the TransformationController, #1818 * **FEATURE** (by @mitulagr2) Add `renderPriority` feature in our [ScatterSpot](https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/scatter_chart.md#scatterspot), #1545