Add a second type paramter, U, on mapNestedViews; U is the type of the argument of [callback]. Generated template.dart files fill in a type for the argument of [callback], so using dynamic here results in a "uses dynamic as bottom" error.
Add a second type paramter, U, on mapNestedViews; U is the type of the argument of [callback]. Generated template.dart files fill in a type for the argument of [callback], so using dynamic here results in a "uses dynamic as bottom" error.

See discussion here: https://github.com/dart-lang/sdk/issues/29630

PiperOrigin-RevId: 183131552

angulardart/angular,chalin/angular2,kevmoo/angular,matanlurey/angular,angulardart/angular,angulardart/angular,matanlurey/angular,matanlurey/angular,kevmoo/angular,chalin/angular2,chalin/angular2,kevmoo/angular