forked from firka/flutter
Added tests for the new Android heading semantic flag to android_semantics_testing (#44031)
Added tests for the new Android heading semantic flag to android_semantics_testing.
This commit is contained in:
@@ -33,6 +33,7 @@ class AndroidSemanticsNode {
|
||||
/// "isEnabled": bool,
|
||||
/// "isFocusable": bool,
|
||||
/// "isFocused": bool,
|
||||
/// "isHeading": bool,
|
||||
/// "isPassword": bool,
|
||||
/// "isLongClickable": bool,
|
||||
/// },
|
||||
@@ -115,6 +116,9 @@ class AndroidSemanticsNode {
|
||||
/// Whether the node is focused.
|
||||
bool get isFocused => _flags['isFocused'];
|
||||
|
||||
/// Whether the node is considered a heading.
|
||||
bool get isHeading => _flags['isHeading'];
|
||||
|
||||
/// Whether the node represents a password field.
|
||||
///
|
||||
/// Equivalent to [SemanticsFlag.isObscured].
|
||||
|
||||
Reference in New Issue
Block a user