m3eDialogTextAction function

M3EButton m3eDialogTextAction({
  1. required String label,
  2. required VoidCallback? onPressed,
})

Text button for dialog-built actions.

Styling comes from the action m3eDialogActionScope, the same as for buttons callers pass in, so every dialog action matches.

Implementation

M3EButton m3eDialogTextAction({
  required String label,
  required VoidCallback? onPressed,
}) {
  return M3EButton(
    style: M3EButtonStyle.text,
    onPressed: onPressed,
    child: Text(label),
  );
}