createBackChevron static method
KeyedSubtree?
createBackChevron({
- required GlobalKey<
State< backChevronKey,StatefulWidget> > - required Widget? userLeading,
- required ModalRoute? route,
- required bool automaticallyImplyLeading,
Implementation
static KeyedSubtree? createBackChevron({
required GlobalKey backChevronKey,
required Widget? userLeading,
required ModalRoute<dynamic>? route,
required bool automaticallyImplyLeading,
}) {
if (userLeading != null ||
!automaticallyImplyLeading ||
route == null ||
!route.canPop ||
(route is PageRoute && route.fullscreenDialog)) {
return null;
}
return KeyedSubtree(key: backChevronKey, child: const BackChevron());
}