SaveContextMenuButton constructor

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

Implementation

SaveContextMenuButton({super.onPressed, bool single = true})
  : super(
      key: const Key('SaveButton'),
      label: single
          ? PlatformUtils.isMobile
                ? 'btn_save'.l10n
                : 'btn_save_to_gallery'.l10n
          : PlatformUtils.isMobile
          ? 'btn_save_all'.l10n
          : 'btn_save_to_gallery_all'.l10n,
      trailing: const SvgIcon(SvgIcons.download19),
      inverted: const SvgIcon(SvgIcons.download19White),
    );