invokeReporters<T extends Reporter> method
A function that allows you to combine a certain function for all reporters and call it as one
Implementation
Future<void> invokeReporters<T extends Reporter>(ReportInvoke<T> invoke) {
final validReportCallbacks =
reporters.whereType<T>().map(invoke).whereNotNull();
return Future.wait(validReportCallbacks);
}