PlatformFile.fromMap constructor Null safety

PlatformFile.fromMap(
  1. Map data,
  2. {Stream<List<int>>? readStream}
)

Implementation

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