MathRoda / DashCoin

Light & Modern Crypto Currency Tracker with Jetpack Compose.
Apache License 2.0
281 stars 40 forks source link

companion object in MultipleClicksHandler should be redundant #73

Closed tenSunFree closed 7 months ago

tenSunFree commented 7 months ago

companion object in MultipleClicksHandler should be redundant.

2024-02-03_034855

or did you originally plan to add a default click method?

2024-02-03_050502
MathRoda commented 7 months ago

Hey @tenSunFree thank you for pointing that. it could be seen as an unnecessary complication but using a companion object for instantiation in the context given is not necessarily redundant; it's a design choice. It allows for clear encapsulation and easy access to the MultipleClicksHandler implementation without needing to expose the concrete class.

I hope this clears your thoughts!