diff --git a/packages/webview_flutter/webview_flutter_wkwebview/lib/src/foundation/foundation.dart b/packages/webview_flutter/webview_flutter_wkwebview/lib/src/foundation/foundation.dart index 818f018d0e3..02142d235ae 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/lib/src/foundation/foundation.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/lib/src/foundation/foundation.dart @@ -223,6 +223,10 @@ class NSError { /// A string containing the localized description of the error. final String localizedDescription; + @override + String toString() { + return 'NSError - code: $code, domain: $domain, localizedDescription: $localizedDescription'; + } } /// A representation of an HTTP cookie.