LCOV - code coverage report

Current view
top level - src - utils.dart
Test
lcov.info
Date
2026-02-21
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines99100.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import 'dart:async';
2
3extension HexExt on int {
412 String get hex => '0x${toRadixString(16).padLeft(8, '0')}';
5}
6
7extension ControllerSafeExt<T> on StreamController<T> {
810 void safeAdd(T data) {
920 if (!isClosed) add(data);
10 }
11
127 void safeAddError(Object error, [StackTrace? stackTrace]) {
1314 if (!isClosed) addError(error, stackTrace);
14 }
15}
16
17extension CompleterSafeExt<T> on Completer<T> {
1810 void safeComplete([FutureOr<T>? value]) {
1920 if (!isCompleted) complete(value);
20 }
21
224 void safeCompleteError(Object error, [StackTrace? stackTrace]) {
238 if (!isCompleted) completeError(error, stackTrace);
24 }
25}
Choose Features