File tree Expand file tree Collapse file tree 9 files changed +11
-11
lines changed Expand file tree Collapse file tree 9 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ class _PostsState extends State<_PostsList> {
160160 );
161161 }
162162
163- List <_Post > _parseJson (json) {
163+ List <_Post > _parseJson (dynamic json) {
164164 final posts = < _Post > [];
165165 if (json is List ) {
166166 for (final postJson in json) {
Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ void main() {
522522 _OnTapUrlApp (
523523 href: href,
524524 onTapCallbackResults: onTapCallbackResults,
525- onTapUrl: (_) async => false ,
525+ onTapUrl: (_) => false ,
526526 ),
527527 );
528528 await tester.pumpAndSettle ();
@@ -539,7 +539,7 @@ void main() {
539539 _OnTapUrlApp (
540540 href: href,
541541 onTapCallbackResults: onTapCallbackResults,
542- onTapUrl: (_) async => true ,
542+ onTapUrl: (_) => true ,
543543 ),
544544 );
545545 await tester.pumpAndSettle ();
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Future<String> explain(
3737 Widget ? hw,
3838 GlobalKey ? key,
3939 bool useExplainer = true ,
40- }) async {
40+ }) {
4141 key ?? = helper.hwKey;
4242 return helper.explain (
4343 tester,
Original file line number Diff line number Diff line change @@ -508,7 +508,7 @@ void main() {
508508 tester,
509509 HtmlWidget (
510510 '<a href="$href ">Tap me</a>' ,
511- onTapUrl: (url) async {
511+ onTapUrl: (url) {
512512 urls.add (url);
513513 return false ;
514514 },
@@ -529,7 +529,7 @@ void main() {
529529 tester,
530530 HtmlWidget (
531531 '<a href="$href ">Tap me</a>' ,
532- onTapUrl: (url) async {
532+ onTapUrl: (url) {
533533 urls.add (url);
534534 return true ;
535535 },
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Future<String> explain(
2222 WidgetTester tester,
2323 String html, {
2424 bool useExplainer = true ,
25- }) async =>
25+ }) =>
2626 helper.explain (
2727 tester,
2828 null ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Future<String> explain(
2727 WidgetTester tester,
2828 String html, {
2929 bool useExplainer = true ,
30- }) async =>
30+ }) =>
3131 helper.explain (
3232 tester,
3333 null ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import '../../core/test/_.dart' as helper;
66
77const tapText = helper.tapText;
88
9- Future <String > explain (WidgetTester tester, String html) async =>
9+ Future <String > explain (WidgetTester tester, String html) =>
1010 helper.explain (
1111 tester,
1212 null ,
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Future<String> explain(
4545 String html, {
4646 Uri ? baseUrl,
4747 bool useExplainer = true ,
48- }) async =>
48+ }) =>
4949 helper.explain (
5050 tester,
5151 null ,
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ abstract class FakeWebViewController extends PlatformWebViewController {
7474 FutureOr <NavigationDecision ?> onNavigationRequest ({
7575 required String url,
7676 required bool isMainFrame,
77- }) async {
77+ }) {
7878 final req = NavigationRequest (url: url, isMainFrame: isMainFrame);
7979 return _handler? ._onNavigationRequest? .call (req);
8080 }
You can’t perform that action at this time.
0 commit comments