DownloadContextMenuButton constructor

DownloadContextMenuButton({
  1. void onPressed()?,
  2. bool single = true,
})

Implementation

DownloadContextMenuButton({super.onPressed, bool single = true})
  : super(
      key: const Key('DownloadButton'),
      label: single ? 'btn_download'.l10n : 'btn_download_all'.l10n,
      trailing: const SvgIcon(SvgIcons.download19),
      inverted: const SvgIcon(SvgIcons.download19White),
    );