LCOV - code coverage report
Current view: top level - src/models - constraints_ext.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 5 5 100.0 %
Date: 2021-11-17 11:54:54 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:bootstrap_flutter/bootstrap_flutter.dart';
       2             : import 'package:flutter/material.dart';
       3             : 
       4             : extension BoxConstraintsExt on BoxConstraints {
       5           1 :   TypeScreen get getScreenType {
       6           2 :     if (this.maxWidth < 768) {
       7             :       return TypeScreen.xs;
       8           4 :     } else if (this.maxWidth >= 768 && this.maxWidth < 992) {
       9             :       return TypeScreen.sm;
      10           4 :     } else if (this.maxWidth >= 992 && this.maxWidth < 1200) {
      11             :       return TypeScreen.md;
      12           2 :     } else if (this.maxWidth >= 1200) {
      13             :       return TypeScreen.lg;
      14             :     } else {
      15             :       return TypeScreen.none;
      16             :     }
      17             :   }
      18             : }

Generated by: LCOV version 1.15