SlideRoute constructor

SlideRoute({
  1. required Widget builder(
    1. BuildContext
    ),
  2. Offset? startOffset,
  3. Offset? endOffset,
  4. bool fullscreenDialog = false,
})

Implementation

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