Semantics.fromProperties constructor

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({
  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);