NetworkToFileImage constructor

const NetworkToFileImage({
  1. File? file,
  2. String? url,
  3. double scale = 1.0,
  4. Map<String, String>? headers,
  5. bool debug = false,
})

Implementation

const NetworkToFileImage({
  /// Same parameter as [FileImage].
  this.file,

  /// Same parameter as [NetworkImage].
  this.url,

  /// Same parameter as both [FileImage] and [NetworkImage].
  this.scale = 1.0,

  /// Same parameter as [NetworkImage].
  this.headers,

  /// If debug is true, print to the console if the image is from file or network.
  this.debug = false,
}) : assert(file != null || url != null);