forked from firka/flutter
Migrate android_semantics_testing to null safety (#84136)
This commit is contained in:
committed by
GitHub
parent
3858cc655c
commit
0d1a8a7798
@@ -168,7 +168,7 @@ class AndroidSemanticsAction {
|
||||
case _kSetText:
|
||||
return 'AndroidSemanticsAction.setText';
|
||||
default:
|
||||
return null;
|
||||
return 'INVALID';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ class AndroidSemanticsAction {
|
||||
/// Creates a new [AndroidSemanticsAction] from an integer `value`.
|
||||
///
|
||||
/// Returns `null` if the id is not a known Android accessibility action.
|
||||
static AndroidSemanticsAction deserialize(int value) {
|
||||
static AndroidSemanticsAction? deserialize(int value) {
|
||||
return _kActionById[value];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user