Showing 2 of 2 files from the diff.
Newly tracked file
lib/src/json_string.dart changed.
Newly tracked file
lib/src/utils.dart changed.

@@ -192,7 +192,6 @@
Loading
192 192
193 193
  static Object _decodeSafely(String source,
194 194
      {Function(Object key, Object value) decoder}) {
195 -
    assert(source != null);
196 195
    try {
197 196
      return json.decode(source, reviver: decoder);
198 197
    } catch (e) {

@@ -100,14 +100,6 @@
Loading
100 100
  return List<T>.from(jsonList);
101 101
}
102 102
103 -
dynamic castToPrimitiveValue(dynamic value) {
104 -
  if (!isPrimitiveValue(value)) {
105 -
    throw JsonDecodingError(
106 -
        "value '${value.toString()}' is not a primitive value");
107 -
  }
108 -
  return value;
109 -
}
110 -
111 103
T castToPrimitiveTypedValue<T>(dynamic value) {
112 104
  if (!isPrimitiveType<T>()) {
113 105
    throw JsonDecodingError(
@@ -134,10 +126,6 @@
Loading
134 126
  return node is List<dynamic>;
135 127
}
136 128
137 -
bool isPrimitiveValue(dynamic node) {
138 -
  return node is bool || node is String || node is int || node is double;
139 -
}
140 -
141 129
bool isTypedList<T>(dynamic node) {
142 130
  if (!isList(node)) {
143 131
    return false;
Files Coverage
lib/src 86.39%
Project Totals (4 files) 86.39%
codecovcodecov-action

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading