needsSeparator method
Whether separators should be shown based on the group type.
Implementation
bool needsSeparator() {
return type == TButtonGroupType.text ||
type == TButtonGroupType.softText ||
type == TButtonGroupType.filledText ||
type == TButtonGroupType.boxed;
}