Line data Source code
1 : /// [WidgetbookData] contains information about the annotated element. 2 : abstract class WidgetbookData { 3 1 : WidgetbookData({ 4 : required this.name, 5 : required this.importStatement, 6 : required this.dependencies, 7 : }); 8 : 9 : /// The name of the annotated element 10 : final String name; 11 : 12 : /// The import statement necessary to reference this type or function in the 13 : /// final output file 14 : final String importStatement; 15 : 16 : /// The import statements defined by the file in which the annotation is used. 17 : final List<String> dependencies; 18 : 19 : /// Maps this object into a serializable format 20 : Map<String, dynamic> toMap(); 21 : }