AggregateException constructor
Initializes a new instance of the AggregateException class with a specified error message and a reference to the inner exceptions.
Implementation
AggregateException({
String? message,
Iterable<Exception>? innerExceptions,
}) : _message = message ?? 'One or more errors occurred.',
_innerExceptions = innerExceptions?.toList() ?? [];