# cross_file 0.1.0

An abstraction to allow working with files across multiple platforms.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'cross_file:0.1.0'
```
Published: 2020-11-19T22:01:42.021634Z
Expected archive SHA-256: 689ed0a6813cd4459e5589cae886416008db8319e7788685ba3ec216522f83b7

Available in cache; verification: upstream_checksum
## Direct dependencies
- flutter: map[sdk:flutter]
- http: ^0.12.0+1
- meta: ^1.0.5

## Package README (untrusted upstream documentation)
# cross_file

An abstraction to allow working with files across multiple platforms.

# Usage

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

Example:

```dart
import 'package:cross_file/cross_file.dart';

final file = CrossFile('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](https://pub.dartlang.org/packages/cross_file).

## Getting Started

For help getting started with Flutter, view our online
[documentation](http://flutter.io/).

For help on editing plugin code, view the [documentation](https://flutter.io/platform-plugins/#edit-code).
## Changelog
## 0.1.0

- Initial open-source release






 
