ignoreErrors method
Suppresses any errors that occur during the future's execution.
Example usage:
Future<int?>? nullableFuture = Future.error('An error occurred');
var result = await nullableFuture.ignoreErrors();
print(result); // prints: null
Implementation
Future<void> ignoreErrors() async {
try {
await this;
} catch (_) {}
}