isfirstPage static method

bool isfirstPage({
  1. required BuildContext context,
})

Implementation

static bool isfirstPage({required BuildContext context}) {
  bool showback;
  final ModalRoute<dynamic>? parentRoute = ModalRoute.of(context);
  showback = parentRoute?.canPop ?? false;
  return showback;
}