As a user, I'd like to apply a small improvement to make the error more understandable. CompressError doesn't currently have toString, so unless a logger or similar explicitly reads the #message, the content may be unclear. For example,
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: CompressError: numberOfRetries can't be null or less than 0
#0 FlutterImageCompressCommon.compressAndGetFile (package:flutter_image_compress_common/flutter_image_compress_common.dart:167:7)
#1 FlutterImageCompress.compressAndGetFile (package:flutter_image_compress/flutter_image_compress.dart:105:22)
Hi, thank you for this awesome package!
As a user, I'd like to apply a small improvement to make the error more understandable.
CompressError
doesn't currently havetoString
, so unless a logger or similar explicitly reads the#message
, the content may be unclear. For example,After applying this patch.
Could you please consider if it can be merged?