Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The method 'basename' isn't defined for the type 'Path'. (Documentation)

This is the Error when u are uploading files to firestore firebase. So I sol this Error. Checkout the answer below in Answers section. Thanks

like image 483
kamran khan Avatar asked Mar 10 '26 10:03

kamran khan


1 Answers

Just add this Line in Imports import 'package:path/path.dart' as Path;

like image 54
kamran khan Avatar answered Mar 11 '26 23:03

kamran khan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!