flutter-template
flutter-template copied to clipboard
Consider having a `call` method instead of a `run` method in use cases
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.