LCOV - code coverage report
Current view: | top level - src/providers - canvas_state.dart (source / functions) |  |  | Hit | Total | Coverage
Test: | lcov.info |  | Lines: | 8 | 8 | 100.0 %
Date: | 2021-10-11 06:57:03 |  | Functions: | 0 | 0 | -

              Line data    Source code
           1             : import 'package:widgetbook/src/models/organizers/story.dart';
           2             :
           3             : class CanvasState {
           4           2 :   CanvasState({
           5             :     required this.selectedStory,
           6             :   });
           7             :
           8           1 :   factory CanvasState.unselected() {
           9           1 :     return CanvasState(selectedStory: null);
          10             :   }
          11             :
          12             :   final Story? selectedStory;
          13           2 :   bool get isStorySelected => selectedStory != null;
          14             :
          15           1 :   @override
          16             :   bool operator ==(Object other) {
          17             :     if (identical(this, other)) return true;
          18             :
          19           4 :     return other is CanvasState && other.selectedStory == selectedStory;
          20             :   }
          21             :
          22           1 :   @override
          23           2 :   int get hashCode => selectedStory.hashCode;
          24             : }

Generated by: LCOV version 1.15