build method Null safety

SemanticsUpdate build()

Creates a SemanticsUpdate object that encapsulates the updates recorded by this object.

The returned object can be passed to PlatformDispatcher.updateSemantics to actually update the semantics retained by the system.

Implementation

SemanticsUpdate build() {
  final SemanticsUpdate semanticsUpdate = SemanticsUpdate._();
  _build(semanticsUpdate);
  return semanticsUpdate;
}