• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Duit-Foundation / flutter_duit / 19115039532

05 Nov 2025 08:15PM UTC coverage: 86.358% (+8.9%) from 77.409%
19115039532

push

github

web-flow
major: flutter_duit v4 (#310)

2151 of 2405 new or added lines in 109 files covered. (89.44%)

36 existing lines in 7 files now uncovered.

3773 of 4369 relevant lines covered (86.36%)

35.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/lib/src/ui/widgets/grid_constructor.dart
1
enum GridConstructor {
2
  common,
3
  builder,
4
  count,
5
  extent;
6

7
  static GridConstructor fromValue(dynamic value) {
8✔
8
    if (value is String) {
8✔
9
      return _stringLookup[value]!;
8✔
10
    }
11

NEW
12
    if (value is int) {
×
NEW
13
      return _intLookup[value]!;
×
14
    }
15

NEW
16
    throw ArgumentError("Invalid grid constructor value: $value");
×
17
  }
18
}
19

20
const _stringLookup = {
21
  "common": GridConstructor.common,
22
  "builder": GridConstructor.builder,
23
  "count": GridConstructor.count,
24
  "extent": GridConstructor.extent,
25
};
26

27
const _intLookup = {
28
  0: GridConstructor.common,
29
  1: GridConstructor.count,
30
  2: GridConstructor.builder,
31
  3: GridConstructor.extent,
32
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc