Instantiate a void price?

Hello! New to dart and flutter. The quick model is I am seeking to create a stub means that returns a `End result<void>` price outcome (the usage of End result from the async bundle), however I will’t appear to determine the syntax for passing a void price to the outcome constructor. The usage of Swift as a reference, my instinct is to jot down this:

`End result<void> foo() => ValueResult(());`

however that is invalid. The one method I will get it to collect is so as to add a helper `_void() {}` serve as and make contact with out to it, which is kinda gross IMO. So how do I go back a void outcome price? Is there a secret init for edge instances or one thing? Thank you!



View Reddit through pb0sView Supply

You may also like...

WP2Social Auto Publish Powered By : XYZScripts.com