Revert "Migrate android_semantics_testing to null safety (#111420)" (#111429)

This reverts commit 0df0e2ea1f.
This commit is contained in:
Zachary Anderson
2022-09-12 18:11:07 -07:00
committed by GitHub
parent 257e31ecc3
commit e99341920e
10 changed files with 80 additions and 81 deletions

View File

@@ -168,7 +168,7 @@ class AndroidSemanticsAction {
case _kSetText:
return 'AndroidSemanticsAction.setText';
default:
throw UnimplementedError();
return null;
}
}
@@ -211,7 +211,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];
}
}