only
ReactElement
only(
Verifies that children has only one child and returns it.
Throws if children has zero or more than one child.
Example:
final onlyChild = Children.only(props['children']);
Implementation
static ReactElement only(JSAny? children) =>
ReactElement.fromJS(_childrenOnly(children));