Closed Zacchaeus-Oluwole closed 1 week ago
Hi! Thanks for opening your first issue here! :smile:
Hi, it seems that in order to use a Future
, Dart language requires await
. For example,
var a = await MathArithmetic.newInstance(2,initialValue: 2); // <-- note the `await`
a.getValue();
Thank you, it works. This issue will be closed down shortly but before that i have questions to ask.
When flutter_rust_bridge is used to build flutter package, does any user that wants to use the package needs to have rust and the necessary rust crate(s) installed?
It depends on how you integrate flutter+rust. For example, if using cargokit (the default one), there is no need for package users to do anything.
On which social media platform can someone have a direct conversation with you? Twitter, Linkedin or any?
Usually just here ;) Feel free to ask me anything on GitHub issues! I check GitHub inboxes quite often indeed.
Alright, thank you🥰. Can i close the issue now?
Sure and you are welcome!
I am not sure if this should be a feature request but I need a clear explanation on how to go about this .rs
.dart
In the above code, i could only call the newInstance and I couldn't call other methods of the MathArithmetic's struct.
The only way could access the other methods is like this which wasn't working
All the methods that take
self
in the above.rs
code were affected