static Future<String?> Function(dynamic) get onErrorCaught { return _onErrorCaught ?? (e) async { return null; }; }