Showing
1 changed file
with
6 additions
and
1 deletions
1 | typedef ValueUpdater<T> = T Function(); | 1 | typedef ValueUpdater<T> = T Function(); |
2 | - | 2 | +/// This allows a value of type T or T? |
3 | +/// to be treated as a value of type T?. | ||
4 | +/// | ||
5 | +/// We use this so that APIs that have become | ||
6 | +/// non-nullable can still be used with `!` and `?` | ||
7 | +/// to support older versions of the API as well. | ||
3 | T? ambiguate<T>(T? value) => value; | 8 | T? ambiguate<T>(T? value) => value; |
-
Please register or login to post a comment