DownloadButton constructor

const DownloadButton({
  1. Key? key,
  2. required DownloadStatus status,
  3. required double width,
  4. double downloadProgress = 0.0,
  5. required VoidCallback onDownload,
  6. required VoidCallback onCancel,
  7. required VoidCallback onOpen,
  8. Duration transitionDuration = const Duration(milliseconds: 500),
})

Implementation

const DownloadButton({
  Key? key,
  required this.status,
  required this.width,
  this.downloadProgress = 0.0,
  required this.onDownload,
  required this.onCancel,
  required this.onOpen,
  this.transitionDuration = const Duration(milliseconds: 500),
}) : super(key: key);