anchor.diff:  
         verify(_mockCanvasWrapper.restore()).called(1);
   
  -      final result3 =
  -          verify(_mockCanvasWrapper.drawDashedLine(any, any, captureAny, any));
  -      result3.called(2);
  -
  -      /// Todo, we can only test last painter due to a bug in mockito.
  -      /// see more details here: https://github.com/dart-lang/mockito/issues/494
  -      for (Paint item in result3.captured) {
  -        expect(item.color.alpha, 0);
  -        expect(item.strokeWidth, 18);
  +      expect(results.length, 2);
  +
  +      for (Map<String, dynamic> item in results) {
  +        expect((item['paint_color'] as Color).alpha, 0);
  +        expect(item['paint_stroke_width'], 18);
         }
       });
     });
  
positive.code:         ..lineTo(10, 0)
          ..lineTo(10, 10);
  
        lineChartPainter.drawAboveBar(_mockCanvasWrapper, aboveBarPath,
            filledBelowBarPath, holder, lineChartBarData);
  
  
negative.code:       when(_mockCanvasWrapper.size).thenAnswer((realInvocation) => viewSize);
        when(_mockCanvasWrapper.canvas).thenReturn(MockCanvas());
  
        List<Map<String, dynamic>> results = [];
        when(_mockCanvasWrapper.drawDashedLine(
                captureAny, captureAny, captureAny, any))
            .thenAnswer((inv) {
          results.add({
            'from': inv.positionalArguments[0] as Offset,
            'to': inv.positionalArguments[1] as Offset,
            'paint_color': (inv.positionalArguments[2] as Paint).color,
            'paint_stroke_width':
                (inv.positionalArguments[2] as Paint).strokeWidth,
          });
        });
  
        lineChartPainter.drawTouchedSpotsIndicator(
          _mockCanvasWrapper,
          lineChartBarData,
          holder,
        );
  
        expect(results.length, 2);
  
        expect(results[0]['paint_color'], const Color(0xFF00FF00));
        expect(results[0]['paint_stroke_width'], 8.0);
  
        expect(results[1]['paint_color'], const Color(0xFF0000FF));
        expect(results[1]['paint_stroke_width'], 12);
  
        verify(_mockCanvasWrapper.drawDot(any, any, any)).called(2);
      });
  