in your file pubspec.yaml add lines,
The real problem is that pub.dev contains a previous version of this library (3.1.0). How to update:
#video_compress: ^3.1.0 //coment this line and add ->
video_compress:
git:
url: https://github.com/jonataslaw/VideoCompress.git
ref: master