CustomPainterSemantics class Null safety

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

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

hashCode int
The hash code for this object.
read-onlyinherited
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
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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

Methods

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

Operators

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