Skip to content

Commit 13f3a26

Browse files
committed
Returning safely if callback is null
1 parent 9d73692 commit 13f3a26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/widgets/webviews/webview_full.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ class _WebViewFullState extends State<WebViewFull> {
310310
}
311311

312312
Future<bool> _willPopCallback() async {
313-
widget.customCallBack();
313+
if (widget.customCallBack != null) {
314+
widget.customCallBack();
315+
}
314316
return true;
315317
}
316318
}

0 commit comments

Comments
 (0)