LCOV - code coverage report

Current view
top level - src - utils.dart
Test
lcov.info
Date
2026-11-07
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 {
44 String get hex => '0x${toRadixString(16).padLeft(8, '0')}';
5}
6
7extension ControllerSafeExt<T> on StreamController<T> {
81 void safeAdd(T data) {
92 if (!isClosed) add(data);
10 }
11
121 void safeAddError(Object error, [StackTrace? stackTrace]) {
132 if (!isClosed) addError(error, stackTrace);
14 }
15}
16
17extension CompleterSafeExt<T> on Completer<T> {
181 void safeComplete([FutureOr<T>? value]) {
192 if (!isCompleted) complete(value);
20 }
21
221 void safeCompleteError(Object error, [StackTrace? stackTrace]) {
232 if (!isCompleted) completeError(error, stackTrace);
24 }
25}
Choose Features