bigflood / dartexif

Dart package to decode Exif data from tiff, jpeg and heic files
https://pub.dev/packages/exif
MIT License
30 stars 29 forks source link

Exif data, why can the map key be null? #23

Closed jimmyff closed 3 years ago

jimmyff commented 3 years ago

Future<Map<String?, IfdTag>?> readExifFromBytes

I'm not sure why you would expect an IfdTag with a null key?

Future<Map<String, IfdTag>?> readExifFromBytes is what I would assume to be correct?

bigflood commented 3 years ago

You are right. So, I'm currently refactoring the code.

Future<Map<String?, IfdTag>?>Future<Map<String, IfdTag>>

https://github.com/bigflood/dartexif/blob/refactoring/lib/src/read_exif.dart#L20