LCOV - code coverage report
Current view: top level - lib/pages/_interfaces - abstract_add_page.dart Coverage Total Hit
Test: lcov.info Lines: 100.0 % 6 6
Test Date: 2026-11-14 15:08:11 Functions: - 0 0

            Line data    Source code
       1              : // Copyright 2023 The terCAD team. All rights reserved.
       2              : // Use of this source code is governed by a CC BY-NC-ND 4.0 license that can be found in the LICENSE file.
       3              : 
       4              : import 'package:app_finance/pages/_interfaces/abstract_page_state.dart';
       5              : import 'package:material_ui/material_ui.dart';
       6              : 
       7              : abstract class AbstractAddPage<T> extends StatefulWidget {
       8            1 :   const AbstractAddPage({super.key});
       9              : }
      10              : 
      11              : abstract class AbstractAddPageState<T extends AbstractAddPage> extends AbstractPageState<T> {
      12              :   bool hasError = false;
      13              : 
      14              :   bool hasFormErrors();
      15              : 
      16              :   void updateStorage();
      17              : 
      18            1 :   void triggerActionButton(NavigatorState nav) {
      19            2 :     setState(() {
      20            1 :       if (hasFormErrors()) {
      21              :         return;
      22              :       }
      23            1 :       updateStorage();
      24            1 :       nav.pop();
      25              :     });
      26              :   }
      27              : }
        

Generated by: LCOV version 2.0-1