We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf5d08 commit 899e217Copy full SHA for 899e217
lib/src/builder.dart
@@ -94,10 +94,7 @@ class _Builder extends Builder {
94
95
if (!_isStandalone) {
96
var asset = buildStep.inputId;
97
- var name = nameOfPartial(
98
- library,
99
- asset,
100
- );
+ var name = nameOfPartial(library, asset);
101
if (name == null) {
102
var suggest = suggestLibraryName(asset);
103
throw new InvalidGenerationSourceError(
lib/src/generator.dart
@@ -37,7 +37,7 @@ class InvalidGenerationSourceError extends Error {
37
final String todo;
38
39
InvalidGenerationSourceError(this.message, {String todo})
40
- : this.todo = todo == null ? '' : todo;
+ : this.todo = todo ?? '';
41
42
@override
43
String toString() => message;
0 commit comments