platform_file 0.1.0 copy "platform_file: ^0.1.0" to clipboard
platform_file: ^0.1.0 copied to clipboard

An abstraction to allow working with files across multiple platforms.

platform_file #

Pub Version (including pre-releases) GitHub license GitHub stars

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,
    );
  }
1
likes
130
pub points
71%
popularity

Publisher

verified publisherjiejie.dev

An abstraction to allow working with files across multiple platforms.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on platform_file