processRouteInfo method
dynamic
processRouteInfo(
- Route? currentRoute
)
Implementation
processRouteInfo(Route? currentRoute) {
if (navigationStyle == NavigationStyle.classRoute) {
if (currentRoute is MaterialPageRoute) {
final widget = currentRoute.builder(currentRoute.navigator!.context);
if (secureClassRouteList.contains(widget.runtimeType)) {
disableScreenshot();
} else {
enableScreenshot();
}
}
}
if (navigationStyle == NavigationStyle.namedRoute) {
if (currentRoute?.settings.name != null) {
if (secureNamedRouteList.contains(currentRoute?.settings.name)) {
disableScreenshot();
} else {
enableScreenshot();
}
}
}
}