PopupButton.destructive constructor

PopupButton.destructive(
  1. String id,
  2. String text
)

a button with a style that indicates a destructive action (e.g. “Remove”, “Delete”, etc.).

Implementation

factory PopupButton.destructive(String id, String text) => PopupButton._(id, 'destructive', text);