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.)