Semantics.fromProperties constructor Null safety

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

Creates a semantic annotation using SemanticsProperties.

The container and properties arguments must not be null.

Implementation

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