mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This changes the return type from `List<Decoration>` to `List<Decoration?>`, matching the corresponding setter. As such it is a breaking change. I believe the current type is a *bug*, and this is the correct fix. The underlying value has a nullable element type, and the setter accepts a list which can contain `null`, but the getter tries to create a list with non-nullable elements from the stored value. Calling this getter while the list contains `null` will throw. (If this fix is too simplistic, I'll file a bug for the issue instead.)
Flutter
Flutter is a new way to build high-performance, cross-platform mobile, web, and desktop apps. Flutter is optimized for today's — and tomorrow's — mobile and desktop devices. We are focused on low-latency input and high frame rates on all platforms.
See the getting started guide for information about using Flutter.