We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c45e5ff commit 52094b2Copy full SHA for 52094b2
pkgs/json_syntax_generator/lib/src/parser/schema_analyzer.dart
@@ -45,6 +45,20 @@ class SchemaAnalyzer {
45
final List<String> publicSetters;
46
47
/// For subtypes of these classes, the union tag values are exposed.
48
+ ///
49
+ /// For example, if `Asset.type` is `NativeCodeAsset.typeValue`, then the
50
+ /// asset is a native code asset. Listing `Asset` in [visbleUnionTagValues]
51
+ /// will add `static const typeValue = 'native_code';`:
52
53
+ /// ```dart
54
+ /// class NativeCodeAsset extends Asset {
55
+ /// static const typeValue = 'native_code';
56
+ /// }
57
58
+ /// class Asset {
59
+ /// String? get type => _reader.get<String?>('type');
60
61
+ /// ```
62
final List<String> visbleUnionTagValues;
63
64
SchemaAnalyzer(
0 commit comments