Simplified code example:
int value() => 1;
main() {
int value = value(); // Error here: 'value' isn't a function
}
Is there a way to specify that I want to call a function?
If no, why is it impossible?
You can use an import prefix
import 'this_file.dart' as foo;
int value() => 1;
main() {
int value = foo.value(); // Error here: 'value' isn't a function
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With