from static method
Implementation
static XSemanticsParams? from(
XSemantics widget,
SSRBuildContext context,
WidgetMetadata metadata,
) {
final child = _cookWidget(widget.child, context);
if (metadata.vanish && child == null) {
return null;
}
return XSemanticsParams(
explicitChildNodes: widget.explicitChildNodes,
excludeSemantics: widget.excludeSemantics,
enabled: widget.enabled,
checked: widget.checked,
selected: widget.selected,
toggled: widget.toggled,
button: widget.button,
header: widget.header,
textField: widget.textField,
readOnly: widget.readOnly,
focusable: widget.focusable,
focused: widget.focused,
inMutuallyExclusiveGroup: widget.inMutuallyExclusiveGroup,
obscured: widget.obscured,
multiline: widget.multiline,
scopesRoute: widget.scopesRoute,
namesRoute: widget.namesRoute,
hidden: widget.hidden,
image: widget.image,
liveRegion: widget.liveRegion,
maxValueLength: widget.maxValueLength,
currentValueLength: widget.currentValueLength,
label: widget.label,
hint: widget.hint,
value: widget.value,
increasedValue: widget.increasedValue,
decreasedValue: widget.decreasedValue,
onTapHint: widget.onTapHint,
onLongPressHint: widget.onLongPressHint,
child: child,
);
}