How to import platform specific dependency in Flutter/Dart? (Combine Web with Android/iOS)
Here is my approach to your issue. This is based on the implementations from http package as in here. The core idea is as follows. Create an abstract class to define the methods you will need to use. Create implementations specific to web and android dependencies which extends this abstract class. Create a stub which … Read more