Back

model.document

  • 0
  • Flutter
Joshima
19 May, 2023, 09:46

can i still use model.document like this @override Future<model.Document> getUserData(String uid) { return _db.getDocument( databaseId: AppConstants.APPWRITE_DATABASE_ID, collectionId: AppConstants.APPWRITE_USERS_COLLECIION, documentId: uid, ); } by importing it like this - import 'package:appwrite/models.dart' as model;

TL;DR
The user is asking if they can still use `model.document` in their code and import it as `import 'package:appwrite/models.dart' as model`. There is no solution provided in the thread.
Vedsaga
19 May, 2023, 09:59

sure

safwan
19 May, 2023, 09:59

Yes that's perfectly fine!

joeyouss
19 May, 2023, 11:01

Ofcourse, also just a suggestion to use the ` sign for code block - makes it very easy to read ❤️

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more