Why do we have implements in dart?

Issue I can’t get a clue why do we need implements? According to this https://dart.dev/language/classes#implicit-interfaces After we used implements we should rewrite everything we have in parent class except constructor. // A person. The implicit interface contains greet(). class Person

Continue reading

Right way to group initialization code in Java

Issue I have some stuff with similar properties, methods and initialization code. Like public class LoadElement { LoadingElementBinding binding; public LoadElement(ViewGroup parent) { binding = LoadingElementBinding.inflate( LayoutInflater.from(parent.getContext()), parent, false)); binding.setLifecycleOwner(ViewTreeLifecycleOwner.get(parent)); } public void doDomething() { //somehing do with binding }

Continue reading