Support Dart in Cloud Functions
Dart is not currently supported in Cloud Functions, so developers need to use more than one language in their code base. Here are some pain points they shared with the Firebase product team about this gap:
- They need to learn another language, and many of them do not have the same expertise in JavaScript as they do in Dart.
- The lack of features and tools, such as Hot Reload and Hot Restart, impacts development speed.
- Developers cannot share business logic and data models across the entire stack.
- Developers cannot use frequently used Dart packages on the server.
-
Nate Frechette commented
Being able to share dart code client side and server side would be game changing!
-
ali Hassan commented
i must need cloud function or firebase functions in dart and i also need admin sdk for dark so we can easily do many admin side and function side code in dart instead of using JavaScript or other supported languages
-
Nabeel Parkar commented
This would not only be a great step forward for backend Dart, but also generally a huge win for Firebase since Flutter and Firebase have always been such a good combination, having to write JS pulled away from that
-
sharif mohamed commented
i was just about to suggest this and i totally agree with you, i wanna use one programming language for my flutter apps,just dart, i don't like switching between dart frontend and js or typescript for the cloud functions, this would be a helpful feature for us devs who want to use just dart for our apps
-
Aditya Majethia commented
This should be a priority for the Firebase Team. Dart has better performance & better type safety. And it would make integration with Flutter seamless.
-
Mark Videon commented
It's less a position of looking for a "one-fits-all" language, and more that Dart fits just fine, and it isn't supported because it doesn't have the legacy that JS does.
I suspect that the more Flutter moves into "game development space" the more desirable having Dart support in Firebase services will be.
-
Note that this is going to be dependent on also having a Dart Admin SDK, which is tracked here: https://firebase.uservoice.com/forums/948424-general/suggestions/46591735-dart-support-for-the-firebase-s-admin-sdk
-
Alexander Regier commented
I don't know how useful this is.
Sure, I can understand your reasoning, but there is no one-fits all language.
So only because Dart works well on mobile, it's not necessarily the best for backend.Different languages and frameworks exist for different use cases so "they want to have one language in one code base for all their products" is not really a thing.