CustomPainterSemantics constructor Null safety

const CustomPainterSemantics(
  1. {Key? key,
  2. required Rect rect,
  3. required SemanticsProperties properties,
  4. Matrix4? transform,
  5. Set<SemanticsTag>? tags}
)

Creates semantics information describing a rectangle on a canvas.

Arguments rect and properties must not be null.

Implementation

const CustomPainterSemantics({
  this.key,
  required this.rect,
  required this.properties,
  this.transform,
  this.tags,
}) : assert(rect != null),
     assert(properties != null);