Working with Dart for years now and same goes for Node.JS.
While we can use tRPC or oRPC to manage type-safe communication between front-end and backend in web but if you go to mobile with Flutter all that goes to waste, those carefully built routers, procedures and middleware everything.
Here's a thing that could help tho :)