navigateToCallListScreen method
void
navigateToCallListScreen()
Opens Http calls inspector. This will navigate user to the new fullscreen page where all listened http calls can be viewed.
Implementation
void navigateToCallListScreen() {
final context = getContext();
if (context == null) {
ChuckUtils.log(
"Cant start Chuck HTTP Inspector. Please add NavigatorKey to your application");
return;
}
if (!_isInspectorOpened) {
_isInspectorOpened = true;
Navigator.push<void>(
context,
MaterialPageRoute(
builder: (context) => ChuckCallsListScreen(this),
),
).then((onValue) => _isInspectorOpened = false);
}
}