anchor.diff:    final MockHttpClientRequest mockRequest = MockHttpClientRequest();
     final MockHttpClientResponse mockResponse = MockHttpClientResponse();
   
  -  when(mockHttpClient.getUrl(any))
  -      .thenAnswer((_) => Future<MockHttpClientRequest>.value(mockRequest));
  -
  -  when(mockRequest.close())
  -      .thenAnswer((_) => Future<MockHttpClientResponse>.value(mockResponse));
  -
  -  when(mockResponse.transform<Uint8List>(any))
  -      .thenAnswer((_) => Stream<Uint8List>.fromIterable(<Uint8List>[svg]));
  +  when(mockHttpClient.getUrl(any)).thenAnswer((_) => Future<MockHttpClientRequest>.value(mockRequest));
  +
  +  when(mockRequest.close()).thenAnswer((_) => Future<MockHttpClientResponse>.value(mockResponse));
  +
  +  when(mockResponse.transform<Uint8List>(any)).thenAnswer((_) => Stream<Uint8List>.fromIterable(<Uint8List>[svg]));
     when(mockResponse.listen(any,
  -          onDone: anyNamed('onDone'),
  -          onError: anyNamed('onError'),
  -          cancelOnError: anyNamed('cancelOnError')))
  +          onDone: anyNamed('onDone'), onError: anyNamed('onError'), cancelOnError: anyNamed('cancelOnError')))
         .thenAnswer((Invocation invocation) {
       final void Function(Uint8List) onData = invocation.positionalArguments[0];
       final void Function(Object) onError = invocation.namedArguments[#onError];
  
positive.code: 
    testWidgets('SvgPicture.asset', (WidgetTester tester) async {
      final MockAssetBundle mockAsset = MockAssetBundle();
      when(mockAsset.loadString('test.svg'))
          .thenAnswer((_) => Future<String>.value(svgStr));
  
      final GlobalKey key = GlobalKey();
      await tester.pumpWidget(
  
negative.code: 
    final Uint8List svg = utf8.encode(svgStr);
  
    testWidgets('SvgPicture can work with a FittedBox', (WidgetTester tester) async {
      final GlobalKey key = GlobalKey();
      await tester.pumpWidget(
        MediaQuery(
  