platform_file

Last updated:

0 purchases

platform_file Image
platform_file Images
Add to Cart

Description:

platform file

platform_file #

An abstraction to allow working with files across multiple platforms.
Copied from https://github.com/miguelpruivo/flutter_file_picker/blob/master/lib/src/platform_file.dart
Usage #
PlatformFile({
String? path,
required this.name,
required this.size,
this.bytes,
this.readStream,
this.identifier,
}) : _path = path;

factory PlatformFile.fromMap(Map data, {Stream<List<int>>? readStream}) {
return PlatformFile(
name: data['name'],
path: data['path'],
bytes: data['bytes'],
size: data['size'],
identifier: data['identifier'],
readStream: readStream,
);
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.