flutter-devicelocale icon indicating copy to clipboard operation
flutter-devicelocale copied to clipboard

Create a good way to mock the Devicelocale

Open carloshpb opened this issue 1 year ago • 0 comments

Currently, it's kinda complicated to make unit tests on static classes that run the static methods of Devicelocale. It would be good if it was easier to do it. On the lib of UrlLauncher, for example, we can use MockPlatformInterfaceMixin and implement the interface UrlLauncherPlatform.

carloshpb avatar Apr 22 '24 19:04 carloshpb