Semantics.fromProperties constructor

const Semantics.fromProperties({Key key, Widget child, bool container: false, bool explicitChildNodes: false, bool excludeSemantics: false, @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);