Semantics.fromProperties constructor Null safety

const Semantics.fromProperties(
  1. {Key? key,
  2. Widget? child,
  3. bool container,
  4. bool explicitChildNodes,
  5. bool excludeSemantics,
  6. required SemanticsProperties properties}
)

Creates a semantic annotation using SemanticsProperties.

The container and properties arguments must not be null.

Implementation

const Semantics.fromProperties({
  Key? key,
  Widget? child,
  this.container = false,
  this.explicitChildNodes = false,
  this.excludeSemantics = false,
  required this.properties,
}) : assert(container != null),
     assert(properties != null),
     super(key: key, child: child);