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

icapps / flutter-icapps-architecture / 9346758135

03 Jun 2024 08:22AM UTC coverage: 93.711% (-1.4%) from 95.135%
9346758135

push

github

web-flow
Merge pull request #126 from icapps/feature/hover-color

Feature/hover color

38 of 53 new or added lines in 2 files covered. (71.7%)

894 of 954 relevant lines covered (93.71%)

1.57 hits per line

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

100.0
/lib/src/extension/map_extensions.dart
1
extension MapExtension<K, V> on Map<K?, V> {
2
  /// Removes all null keys from the map
3
  Map<K, V> removeNullKeys() {
1✔
4
    final map = <K, V>{};
1✔
5
    forEach((key, value) {
2✔
6
      if (key != null) map[key] = value;
1✔
7
    });
8
    return map;
9
  }
10
}
11

12
extension MapExtension2<K, V> on Map<K, V?> {
13
  /// Removes all null values from the map
14
  Map<K, V> removeNullValues() {
1✔
15
    final map = <K, V>{};
1✔
16
    forEach((key, value) {
2✔
17
      if (value != null) map[key] = value;
1✔
18
    });
19
    return map;
20
  }
21
}
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

© 2025 Coveralls, Inc