Use rethrow to rethrow a caught exceptionDRT-W1204
DO use rethrow to rethrow a caught exception.
As Dart provides rethrow as a feature, it should be used to improve terseness and readability.
BAD:
try {
somethingRisky();
} catch(e) {
if (!canHandle(e)) throw e;
handle(e);
}
GOOD:
try {
somethingRisky();
} catch(e) {
if (!canHandle(e)) rethrow;
handle(e);
}