getUserToken() not existing

I’m trying to use code from documentation on how to skip login if user has already logged in but IDE says there is no such method. Please help.

code from example : Backendless.userService.getUserToken().then((userToken) { if (userToken != null && userToken.isNotEmpty) { // user login is available, skip the login activity/login form } });

I have tested this method in my project with backendless_sdk version 1.1.4 and all works ok.

Did you do the import before using the method?

import 'package:backendless_sdk/backendless_sdk.dart';

Hi @Mihael_Ivicic

The provided code sample works fine for me.
Please specify the IDE and the SDK version you use.

Best Regards,
Maksym