SlideRoute.topToBottom constructor

SlideRoute.topToBottom({
  1. required Widget builder(
    1. BuildContext
    ),
  2. bool fullscreenDialog = false,
})

Implementation

SlideRoute.topToBottom({
  required this.builder,
  bool fullscreenDialog = false,
})  : startOffset = const Offset(0, -1),
      endOffset = const Offset(0, 0),
      super(
        fullscreenDialog: fullscreenDialog,
        transitionDuration: const Duration(milliseconds: 500),
        pageBuilder: (context, animation, secondaryAnimation) =>
            builder(context),
      );