LCOV - code coverage report
Current view: top level - lib/design/wrapper - focus_wrapper.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 4 4 100.0 %
Date: 2024-10-04 11:12:13 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/_classes/controller/focus_controller.dart';
       5             : import 'package:flutter/material.dart';
       6             : 
       7             : class FocusWrapper extends InheritedWidget {
       8             :   final FocusController controller;
       9             : 
      10           1 :   const FocusWrapper({
      11             :     super.key,
      12             :     required this.controller,
      13             :     required super.child,
      14             :   });
      15             : 
      16           1 :   static FocusController? of(BuildContext context) =>
      17           2 :       context.dependOnInheritedWidgetOfExactType<FocusWrapper>()?.controller;
      18             : 
      19           1 :   @override
      20             :   bool updateShouldNotify(covariant InheritedWidget oldWidget) => false;
      21             : }

Generated by: LCOV version 1.14