Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run the next line of code when using custom attribute functions #2

Open
rs-huypq opened this issue Feb 27, 2024 · 0 comments
Open

Comments

@rs-huypq
Copy link

rs-huypq commented Feb 27, 2024

Hello, I'm having problems using attribute custom functions.

I am using function setCustomAttributeWithString() but after running it does not continue to run my next code.

It also happens the same when I use functions setCustomAttributeWithInt(), setCustomAttributeWithDouble(), etc.

This is my code. print() not run.

Future<void> setCustomAttributeWithString(String key, String value) async {
    try {
      await FlutterInsider.Instance.getCurrentUser()
          ?.setCustomAttributeWithString(key, value);

      print('CUSTOM ATTRIBUTE - key: $key, value: $value, success');
    } on Exception catch (e) {
      log('$tag - setCustomAttributeWithString error: $e');
    }
  }

My specs

SDK version
flutter 3.7.10
fluttter_insider 3.10.1+nh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant