I want to define a a custom operator in dart,like:
condition ?: func();
It is not possible to define new operators in Dart. See Open issue - Support for defining a new operator https://github.com/dart-lang/language/issues/607
You can only override the behavior of existing operators like it is explained in Does dart support operator overloading
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