'he 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
Solution 1:[1]
Just add this Line in Imports import 'package:path/path.dart' as Path;
Solution 2:[2]
import 'package:path/path.dart' as Path; first import this file then add Path. just before baseman()
Solution 3:[3]
Just import
import 'package:path/path.dart'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | kamran khan |
| Solution 2 | Muneeb Shahzad |
| Solution 3 | Tushar Mahmud |
