Line data Source code
1 : /// Records the fossui version a public API was introduced in.
2 : ///
3 : /// Applied to public API added after the `0.1.0` baseline, so readers and
4 : /// tooling can see when a symbol became available. Everything present in
5 : /// `0.1.0` is left unannotated: the absence of a [FossSince] means the API has
6 : /// existed since the first stable release.
7 : ///
8 : /// ```dart
9 : /// @FossSince('0.2.0')
10 : /// class FossDatePicker extends StatelessWidget {
11 : /// // ...
12 : /// }
13 : /// ```
14 : class FossSince {
15 : /// Creates an annotation marking the [version] an API was introduced in.
16 3 : const FossSince(this.version);
17 :
18 : /// The fossui version the annotated API first shipped in, as written in the
19 : /// changelog (for example `0.2.0`).
20 : final String version;
21 : }
|