FetchProgress.connected constructor Null safety

  1. @visibleForTesting
FetchProgress.connected(
  1. FetchUrl fetch,
  2. {required FetchProgress? prior}
)

Fetch connected

Implementation

@visibleForTesting

/// Fetch connected
FetchProgress.connected(this.fetch, {required this.prior})
    : progress = 0.0,
      length = 0,
      downloaded = 0,
      status = FetchStatus.connected,
      headers = null,
      responseCode = null {
  prior?.prior = null;
}