FileDownloadLoader constructor

const FileDownloadLoader({
  1. Key? key,
  2. required double totalSize,
  3. required double downloadSpeed,
  4. required Color color,
  5. required double size,
})

Implementation

const FileDownloadLoader({
  super.key,
  required this.totalSize,
  required this.downloadSpeed,
  required this.color,
  required this.size,
})  : assert(totalSize > 0, 'Total size must be greater than 0'),
      assert(downloadSpeed > 0, 'Download speed must be greater than 0');