FileSystem constructor

FileSystem({
  1. Future stat(
    1. Uri
    )?,
  2. Future readDirectory(
    1. Uri
    )?,
  3. Future createDirectory(
    1. Uri
    )?,
  4. Future readFile(
    1. Uri
    )?,
  5. Future writeFile(
    1. Uri,
    2. Uint8List
    )?,
  6. Future delete(
    1. Uri, [
    2. dynamic
    ])?,
  7. Future rename(
    1. Uri,
    2. Uri, [
    3. dynamic
    ])?,
  8. Future copy(
    1. Uri,
    2. Uri, [
    3. dynamic
    ])?,
  9. bool? isWritableFileSystem(
    1. String
    )?,
})

Implementation

factory FileSystem({
  _i2.Future<_i2.dynamic> Function(_i3.Uri)? stat,
  _i2.Future<_i2.dynamic> Function(_i3.Uri)? readDirectory,
  _i2.Future<_i2.dynamic> Function(_i3.Uri)? createDirectory,
  _i2.Future<_i2.dynamic> Function(_i3.Uri)? readFile,
  _i2.Future<_i2.dynamic> Function(
    _i3.Uri,
    _i8.Uint8List,
  )? writeFile,
  _i2.Future<_i2.dynamic> Function(
    _i3.Uri, [
    _i2.dynamic,
  ])? delete,
  _i2.Future<_i2.dynamic> Function(
    _i3.Uri,
    _i3.Uri, [
    _i2.dynamic,
  ])? rename,
  _i2.Future<_i2.dynamic> Function(
    _i3.Uri,
    _i3.Uri, [
    _i2.dynamic,
  ])? copy,
  _i2.bool? Function(_i2.String)? isWritableFileSystem,
}) =>
    FileSystem._(
      stat: stat == null ? null : _i5.allowInterop(stat),
      readDirectory:
          readDirectory == null ? null : _i5.allowInterop(readDirectory),
      createDirectory:
          createDirectory == null ? null : _i5.allowInterop(createDirectory),
      readFile: readFile == null ? null : _i5.allowInterop(readFile),
      writeFile: writeFile == null ? null : _i5.allowInterop(writeFile),
      delete: delete == null ? null : _i5.allowInterop(delete),
      rename: rename == null ? null : _i5.allowInterop(rename),
      copy: copy == null ? null : _i5.allowInterop(copy),
      isWritableFileSystem: isWritableFileSystem == null
          ? null
          : _i5.allowInterop(
              (p0) => () => isWritableFileSystem(p0) ?? _i6.undefined),
    );