downloadAndInstall method

Future<void> downloadAndInstall({
  1. required String url,
  2. required String fileName,
  3. Map<String, String> headers = const {},
  4. String? sha256,
  5. void onProgress(
    1. int received,
    2. int total
    )?,
})

Downloads url to fileName, verifies it against sha256 when given, and opens the system installer. Completes once the installer is shown.

Implementation

Future<void> downloadAndInstall({
  required String url,
  required String fileName,
  Map<String, String> headers = const {},
  String? sha256,
  void Function(int received, int total)? onProgress,
}) {
  throw UnimplementedError('downloadAndInstall() has not been implemented.');
}