SemanticsSortKey class abstract

Base class for all sort keys for SemanticsProperties.sortKey accessibility traversal order sorting.

Sort keys are sorted by name, then by the comparison that the subclass implements. If SemanticsProperties.sortKey is specified, sort keys within the same semantic group must all be of the same type.

Keys with no name are compared to other keys with no name, and will be traversed before those with a name.

If no sort key is applied to a semantics node, then it will be ordered using a platform dependent default algorithm.

See also:

Implemented types
Mixed in types
Implementers

Constructors

SemanticsSortKey({String? name})
Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
An optional name that will group this sort key with other sort keys of the same name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(SemanticsSortKey other) int
Compares this object to another object.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
doCompare(covariant SemanticsSortKey other) int
The implementation of compareTo.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited