Hello,
I was wondering if there was any general convention for what to do when you only care to announce that something happened but there is really no associated value.
I know for the listener you can use underscore:
success.then((_) {
print('Yippy!!');
});
But what about in the completer?
success_completer.complete(null);
success_completer.complete(true);
Is there a convention that people are using for this? I suppose 'null' is more obvious that the value is irrelevant, using true might imply that there could also be a false?
- lex