description property

String description

Description - textual name of the button type (useful for debugging)

Implementation

String get description {
  switch (this) {
    case ButtonType.Normal:
      return 'Normal';
    case ButtonType.Destructive:
      return 'Destructive';
    case ButtonType.Cancel:
      return 'Cancel';
    case ButtonType.Custom:
      return 'Custom';
  }
}