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) {
    AliceUtils.log(
      'Cant start Alice HTTP Inspector. Please add NavigatorKey to your '
      'application',
    );
    return;
  }
  if (!_isInspectorOpened) {
    _isInspectorOpened = true;
    Navigator.push<void>(
      context,
      MaterialPageRoute(
        builder: (context) => AliceCallsListScreen(this, _aliceLogger),
      ),
    ).then((onValue) => _isInspectorOpened = false);
  }
}