Search code examples
dartcode-reusereusabilityangular-dart

Reusable Dart Code/Angular Dart Components


Is there a way to make dart code reusable without publishing is as a package to Pub? I have common code between a few different applications and am wondering how to structure it and use it with only one place the code is modified.

I have the same question for angular dart components. Is there a way to create a local package and use that in my projects without going through Pub?

Maybe I am completely misunderstanding the package structure, but I thought that is for published packages.


Solution

  • You have several options: