Unverified Commit ea8e6161 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Enable null_closures (#77095)

parent 7e017d31
...@@ -134,7 +134,7 @@ linter: ...@@ -134,7 +134,7 @@ linter:
# - no_runtimeType_toString # ok in tests; we enable this only in packages/ # - no_runtimeType_toString # ok in tests; we enable this only in packages/
- non_constant_identifier_names - non_constant_identifier_names
- null_check_on_nullable_type_parameter - null_check_on_nullable_type_parameter
# - null_closures # not required by flutter style - null_closures
# - omit_local_variable_types # opposite of always_specify_types # - omit_local_variable_types # opposite of always_specify_types
# - one_member_abstracts # too many false positives # - one_member_abstracts # too many false positives
# - only_throw_errors # https://github.com/flutter/flutter/issues/5792 # - only_throw_errors # https://github.com/flutter/flutter/issues/5792
......
...@@ -227,7 +227,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> { ...@@ -227,7 +227,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
setState(() {}); setState(() {});
break; break;
} }
return Future<dynamic>.sync(null); return Future<dynamic>.value(null);
} }
Future<dynamic> onViewMethodChannelCall(MethodCall call) { Future<dynamic> onViewMethodChannelCall(MethodCall call) {
...@@ -240,7 +240,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> { ...@@ -240,7 +240,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
setState(() {}); setState(() {});
break; break;
} }
return Future<dynamic>.sync(null); return Future<dynamic>.value(null);
} }
Widget buildEventTile(BuildContext context, int index) { Widget buildEventTile(BuildContext context, int index) {
......
...@@ -199,7 +199,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> { ...@@ -199,7 +199,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
setState(() {}); setState(() {});
break; break;
} }
return Future<dynamic>.sync(null); return Future<dynamic>.value(null);
} }
Future<dynamic> onViewMethodChannelCall(MethodCall call) { Future<dynamic> onViewMethodChannelCall(MethodCall call) {
...@@ -212,7 +212,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> { ...@@ -212,7 +212,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
setState(() {}); setState(() {});
break; break;
} }
return Future<dynamic>.sync(null); return Future<dynamic>.value(null);
} }
Widget buildEventTile(BuildContext context, int index) { Widget buildEventTile(BuildContext context, int index) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment