group([component])

Class: RadioButtonMenuItem.

Description:

Adds this RadioButtonMenuItem to the group of another RadioButtonMenuItem while abandoning current group, or removes it from its current group and creates its own when you pass null.

Parameters:

Name Type Description

[component]

RadioButtonMenuItem | null

A RadioButtonMenuItem to join, or null to leave the current group. Omit to get the grouped RadioButtonMenuItem components.

Returns:

This RadioButtonMenuItem, for chaining when called with parameter, otherwise an Array of all RadioButtonMenuItem components in its group.

Type: RadioButtonMenuItem | Array.<RadioButtonMenuItem>