I'm trying to create a FutureBuilder where the future will be the current user. Flutter is giving me an error with the line I have there now ('The expression doesn't evaluate to a function, so it can't be invoked.'). This works with an older version of the SDK but I cannot find the new version of it. I have tried removing the brackets (just having FirebaseAuth.instance.currentUser) but this gives an error 'The argument type 'User' can't be assigned to the parameter type 'Future'. Does anyone know my mistake?
FutureBuilder(
future: FirebaseAuth.instance.currentUser(),
builder: (ctx, futureSnapshot){
},
),