ButtonSegment<T> constructor

const ButtonSegment<T>({
  1. required T value,
  2. Widget? icon,
  3. Widget? label,
  4. String? tooltip,
  5. bool enabled = true,
})

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);