LCOV - code coverage report
Current view: top level - src/ui/editor/pages/helper_editor - helper_editor.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 5 5 100.0 %
Date: 2020-12-04 18:41:24 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:flutter/material.dart';
       2             : import 'package:pal/src/pal_notifications.dart';
       3             : import 'package:pal/src/services/pal/pal_state_service.dart';
       4             : import 'package:pal/src/ui/shared/widgets/overlayed.dart';
       5             : import 'helper_editor_viewmodel.dart';
       6             : 
       7             : class HelperEditorPageArguments {
       8             : 
       9             :   final GlobalKey<NavigatorState> hostedAppNavigatorKey;
      10             : 
      11             :   final String pageId;
      12             : 
      13             :   final String helperMinVersion;
      14             : 
      15             :   final String helperMaxVersion;
      16             : 
      17             :   final bool isOnEditMode;
      18             : 
      19           4 :   HelperEditorPageArguments(
      20             :     this.hostedAppNavigatorKey,
      21             :     this.pageId, {
      22             :     this.helperMinVersion,
      23             :     this.helperMaxVersion,
      24             :     this.isOnEditMode = false,
      25             :   });
      26             : }
      27             : 
      28             : 
      29             : mixin EditorNavigationMixin {
      30             : 
      31             :   BuildContext context;
      32             :   PalEditModeStateService palEditModeStateService;
      33             : 
      34           3 :   Future closeEditor() async {
      35           6 :     Overlayed.removeOverlay(context, OverlayKeys.EDITOR_OVERLAY_KEY);
      36           9 :     palEditModeStateService.showBubble(context, false);
      37           9 :     palEditModeStateService.showHelpersList(context);
      38             :   }
      39             : }
      40             : 

Generated by: LCOV version 1.14