xfile 1.0.3 copy "xfile: ^1.0.3" to clipboard
xfile: ^1.0.3 copied to clipboard

outdated

A library used like java class 'File'.

example/xfile_example.dart

import 'dart:io';

import 'package:xfile/xfile.dart';

main() {
  XFile('/path/path/path/file.txt');
  XFile.fromPath('/path/path/path/file.txt');
  XFile.fromFile(File('/path/path/path/file.txt'));
  XFile.fromUri(Uri.parse('/path/path/path/file.txt'));

  XFile.combine('/path/path/path', 'file.txt');
  XFile.combineDir(Directory('/path/path/path'), 'file.txt');
  XFile.combineFile(File('/path/path/path'), 'file.txt');

  XFile dir = XFile.fromPath('/path/path/path');
  XFile file1 = dir.append('file.txt');
  XFile file2 = dir + 'file.txt';

  Directory toDir = dir.directory;
  File toFile = file1.file;
}
3
likes
0
pub points
75%
popularity

Publisher

unverified uploader

A library used like java class 'File'.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on xfile