0
I’m using the Splashscreen package in my app. I want the splashscreen screen the app identify that there is already a logged in user that was done with firebase. However, along with the route call it is necessary to pass argument with the data of the logged-in user caught in the controller, but the splashscreen navigateAfterSeconds accepts only String or Widget. How do I call the route next to the argument on this splashscreen?
SplashScreen(
          seconds: 5,
          gradientBackground: LinearGradient(
            begin: Alignment.topRight,
            end: Alignment.bottomLeft, 
            colors: [Colors.blue, Colors.blueAccent],
          ),
          navigateAfterSeconds: // AQUI VAI O RETORNO DA FUNÇÃO ISLOGGED, 
          loaderColor: Colors.transparent,
        ),
class InitialController extends GetxController {
  final box = GetStorage('habito_invest_app');
  
  // Verifica se já existe usuário logado
  dynamic isLogged() async {
    if(box.hasData('auth')){
      UserModel user = UserModel(
        id: box.read('auth')['id'],
        email: box.read('auth')['email'],
        name: box.read('auth')['name'],
        urlimage: box.read('auth')['urlimage']
      );
      return Routes.HOME; //preciso passar o user junto
    } else {
      return Routes.LOGIN;
    }
  }
}