Contains properties describing information drawn in a rectangle contained by the Canvas used by a CustomPaint.

This information is used, for example, by assistive technologies to improve the accessibility of applications.

Implement CustomPainter.semanticsBuilder to build the semantic description of the whole picture drawn by a CustomPaint, rather that one particular rectangle.

See also:

Annotations
  • @immutable

Constructors

CustomPainterSemantics({Key key, @required Rect rect, @required SemanticsProperties properties, Matrix4 transform, Set<SemanticsTag> tags })
Creates semantics information describing a rectangle on a canvas. [...]
const

Properties

key Key
Identifies this object in a list of siblings. [...]
final
properties SemanticsProperties
Contains properties that are assigned to the SemanticsNode created or updated from this object. [...]
final
rect Rect
The location and size of the box on the canvas where this piece of semantic information applies. [...]
final
tags Set<SemanticsTag>
Tags used by the parent SemanticsNode to determine the layout of the semantics tree. [...]
final
transform Matrix4
The transform from the canvas' coordinate system to its parent's coordinate system. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(other) bool
The equality operator. [...]
inherited