ButtonSegment<T> constructor
Construct a ButtonSegment.
One of icon
or label
must be non-null.
Implementation
const ButtonSegment({
required this.value,
this.icon,
this.label,
this.tooltip,
this.enabled = true,
}) : assert(icon != null || label != null);