Skip to content

redsolver/cross_file_dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cross_file_dart

An abstraction to allow working with files across multiple platforms.

Usage

Import package:cross_file_dart/cross_file_dart.dart, instantiate a CrossFile using a path or byte array and use its methods and properties to access the file and its metadata.

Example:

import 'package:cross_file_dart/cross_file_dart.dart';

final file = XFileDart('assets/hello.txt');

print('File information:');
print('- Path: ${file.path}');
print('- Name: ${file.name}');
print('- MIME type: ${file.mimeType}');

final fileContent = await file.readAsString();
print('Content of the file: ${fileContent}');  // e.g. "Moto G (4)"

You will find links to the API docs on the pub page.

About

An abstraction to allow working with files across multiple platforms. (Dart-only)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages