firebasefluttergoogle-cloud-firestorebasename

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


Solution

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