pageRouteBuilder function
Implementation
PageRouteBuilder pageRouteBuilder(AppModel app,
{String? pageId, Map<String, dynamic>? parameters, required Widget page}) {
return FadeRoute(
name: app.documentID + ((pageId == null) ? '/?' : '/$pageId'),
parameters: parameters,
page: page,
milliseconds: 1000);
}