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 74e0cf7 commit 102090eCopy full SHA for 102090e
lib/src/model.dart
@@ -3216,12 +3216,10 @@ abstract class ModelElement extends Canonicalization
3216
return _documentationFrom;
3217
}
3218
3219
- bool get hasSourceHref => sourceHref != '';
+ bool get hasSourceHref => sourceHref.isNotEmpty;
3220
String _sourceHref;
3221
String get sourceHref {
3222
- if (_sourceHref == null) {
3223
- _sourceHref = new SourceLinker.fromElement(this).href();
3224
- }
+ _sourceHref ??= new SourceLinker.fromElement(this).href();
3225
return _sourceHref;
3226
3227
0 commit comments