mirror of
https://github.com/flutter/flutter
synced 2024-09-13 13:21:36 +00:00
Correct missing return statements in nullably-typed functions (#95428)
This commit is contained in:
parent
dc8c7a4d89
commit
412e329af2
|
@ -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> {
|
||||||
|
|
||||||
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 }) {
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue