import 'package:flutter/widgets.dart'; abstract class BasicPageRoute extends PageRoute { final Duration transitionDuration; final bool maintainState; BasicPageRoute({ this.transitionDuration = const Duration(milliseconds: 300), this.maintainState = true, }); @override bool get barrierDismissible => false; @override Color? get barrierColor => null; @override String? get barrierLabel => null; }