You need wait for _tokenResponse
because come from Future.
refreshTokenSolution() async {
Future<bool> _response = Future.delayed(Duration(seconds: 2), () => true);
bool _tokenResponse = await _response; // Wait this response and after go next line
print(_tokenResponse); //TRUE
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…