ModalArgsBuilder<P extends RouteParams> typedef Null safety

ModalArgsBuilder<P extends RouteParams> = P Function(ScrollController? controller)

Passes the ScrollController to the route args

Implementation

typedef ModalArgsBuilder<P extends RouteParams> = P Function(ScrollController? controller);