Unverified Commit 412e329a authored by Sam Rawlins's avatar Sam Rawlins Committed by GitHub

Correct missing return statements in nullably-typed functions (#95428)

parent dc8c7a4d
...@@ -43,6 +43,7 @@ class DigitInputState extends State<DigitInput> { ...@@ -43,6 +43,7 @@ class DigitInputState extends State<DigitInput> {
onInvoke: (DeleteCharacterIntent intent) { onInvoke: (DeleteCharacterIntent intent) {
// For simplicity we delete everything in the section. // For simplicity we delete everything in the section.
widget.controller.clear(); widget.controller.clear();
return null;
}, },
); );
...@@ -84,7 +85,7 @@ class _DeleteDigit extends Action<DeleteCharacterIntent> { ...@@ -84,7 +85,7 @@ class _DeleteDigit extends Action<DeleteCharacterIntent> {
final _SimpleUSPhoneNumberEntryState state; final _SimpleUSPhoneNumberEntryState state;
@override @override
Object? invoke(DeleteCharacterIntent intent) { void invoke(DeleteCharacterIntent intent) {
assert(callingAction != null); assert(callingAction != null);
callingAction?.invoke(intent); callingAction?.invoke(intent);
......
...@@ -273,4 +273,6 @@ String? _validateFlutterDir(String dirPath, { String? flutterRoot }) { ...@@ -273,4 +273,6 @@ String? _validateFlutterDir(String dirPath, { String? flutterRoot }) {
case FileSystemEntityType.notFound: case FileSystemEntityType.notFound:
return null; return null;
} }
// In the case of any other [FileSystemEntityType]s, like the deprecated ones, return null.
return null;
} }
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