Next typedef Null safety

Next = dynamic Function(dynamic nodes)

Implementation

typedef Next = dynamic Function(dynamic nodes);