Add asserts for @required parameters (#26449)
Adds asserts on required constructor parameters to a transition widgets. This improves debuggability for those who aren't developing with live analysis. e.g. when `turns` is not specified in a RotationTransition constructor: package:flutter/src/widgets/transitions.dart: Failed assertion: line 43 pos 15: 'listenable != null': is not true. becomes: package:flutter/src/widgets/transitions.dart': Failed assertion: line 259 pos 15: 'turns != null': is not true.
Showing
Please register or sign in to comment