IndexedFile constructor

IndexedFile(
  1. String name, {
  2. Widget? child,
  3. String? custom,
  4. String? path,
  5. bool execute = false,
  6. String? pack,
  7. bool inheritFolder = false,
})

The IndexedFile behaves similar to File. Additionally it makes sure that each File, created with IndexedFile, is unique and does not get overwritten. In order to do that IndexedFile saves for each inputted name an id, which gets incremented after each use.

Implementation

IndexedFile(
  this.name, {
  this.child,
  this.custom,
  this.path,
  this.execute = false,
  this.pack,
  this.inheritFolder = false,
});