3 ms·
In Kotlin and Dart, the better way to do it is extension functions. Just having free functions that take your data object as arguments is almost the same, but
by brabel 3y ago
In Kotlin and Dart, the better way to do it is extension functions.
Just having free functions that take your data object as arguments is almost the same, but has the huge disadvantage that looking up which functions you can call on the object is much harder.