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

Consider having a `call` method instead of a `run` method in use cases

Open nivisi opened this issue 3 years ago • 0 comments

If we create a call method in a class, the class becomes callable and we are able to use it like so:

class MyClass {
  void call();
}

final myClass = MyClass();

myClass(); // <——

We could use it with the use cases:

_myUseCase.run(); // instead of this

_myUseCase(); // we will use this.

nivisi avatar Aug 01 '22 13:08 nivisi