Skip to content

Instantly share code, notes, and snippets.

@danielgomezrico
Created February 14, 2022 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielgomezrico/9052412d6fca785a06c4cbce3b472460 to your computer and use it in GitHub Desktop.
Save danielgomezrico/9052412d6fca785a06c4cbce3b472460 to your computer and use it in GitHub Desktop.
UseCase / Interactor - naming convention to use with use cases
class UpdateUserInteractor {
Future<void> call(String name) async {
print("done $name");
return;
}
}
void main() async {
final updateUser = UpdateUserInteractor();
await updateUser('Dan');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment