LCOV - code coverage report
Current view: top level - src/services/pal - pal_state_service.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 5 10 50.0 %
Date: 2020-12-04 18:41:24 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:flutter/cupertino.dart';
       2             : 
       3             : import '../../pal_notifications.dart';
       4             : 
       5             : abstract class PalEditModeStateService {
       6             : 
       7          14 :   factory PalEditModeStateService.build() => _PalEditModeStateService();
       8             : 
       9             :   /// returns whether or not we show the [BubbleOverlayButton] above the user app
      10           0 :   ValueNotifier<bool> get showEditorBubble => throw "not implemented yet";
      11             : 
      12           0 :   showBubble(BuildContext context, bool show) => throw "not implemented yet";
      13             : 
      14           0 :   showHelpersList(BuildContext context) => throw "not implemented yet";
      15             : }
      16             : 
      17             : class _PalEditModeStateService implements PalEditModeStateService {
      18             : 
      19             :   ValueNotifier<bool> _showEditorBubbleNotifier = ValueNotifier(true);
      20             : 
      21           7 :   @override
      22           7 :   ValueNotifier<bool> get showEditorBubble => _showEditorBubbleNotifier;
      23             : 
      24           1 :   @override
      25             :   showBubble(BuildContext context, bool show) {
      26           2 :     ShowBubbleNotification(show).dispatch(context);
      27             :   }
      28             : 
      29           0 :   @override
      30             :   showHelpersList(BuildContext context) {
      31           0 :     ShowHelpersListNotification().dispatch(context);
      32             :   }
      33             : 
      34             : }

Generated by: LCOV version 1.14