showSelection method

void showSelection({
  1. required AlertType type,
  2. required String title,
  3. required String description,
  4. required String leftText,
  5. required String rightText,
  6. VoidCallback? onLeft,
  7. VoidCallback? onRight,
  8. AlertTheme? theme,
})

Implementation

void showSelection({
  required AlertType type,
  required String title,
  required String description,
  required String leftText,
  required String rightText,
  VoidCallback? onLeft,
  VoidCallback? onRight,
  AlertTheme? theme,
}) {
  OverlayService().show(
    SelectionDialogWidget(
      config: SelectionConfig(
        type: type,
        title: title,
        description: description,
        leftText: leftText,
        rightText: rightText,
        onLeft: onLeft,
        onRight: onRight,
        theme: theme,
      ),
    ),
  );
}