Skip to content

Commit

Permalink
ignore unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed Dec 5, 2023
1 parent ac2ef32 commit 1a33cbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/flutter_svg_test/test/flutter_svg_test_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,12 @@ class _FakeHttpClientResponse extends Fake implements HttpClientResponse {
}
}

// Ignore this because the minimum flutter sdk needs this cast.
// ignore: unnecessary_cast
final Uint8List _svgBytes = utf8.encode(_svgStr) as Uint8List;

const String _svgStr = '''
<svg height="100" width="100">
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
</svg>
</svg>
''';

0 comments on commit 1a33cbd

Please sign in to comment.