onPageCalled method

GetPage? onPageCalled(
  1. GetPage? page
)

This function will be called when this Page is called you can use it to change something about the page or give it new page {@tool snippet}

GetPage onPageCalled(GetPage page) {
  final authService = Get.find<AuthService>();
  return page.copyWith(title: 'Welcome ${authService.UserName}');
}

{@end-tool}

Implementation

GetPage? onPageCalled(GetPage? page) => page;