pageRouteBuilder function

PageRouteBuilder pageRouteBuilder(
  1. AppModel app, {
  2. String? pageId,
  3. Map<String, dynamic>? parameters,
  4. required Widget page,
})

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);
}