OnGeneratePages<T> typedef Null safety

OnGeneratePages<T> = List<Page> Function(T, List<Page>)

Signature for function which generates a List<Page> given an input of T and the current List<Page>.

Implementation

typedef OnGeneratePages<T> = List<Page> Function(T, List<Page>);