Closed
Description
It's really useful to be able to write code like:
result.canTap ||= onCanTap != null;
result.canDoubleTap ||= onDoubleTap != null;
result.canLongPress ||= onLongPress != null;
...but currently we can't because ||=
and &&=
don't work in Dart. |=
and &=
work, but |
and &
aren't implemented by bool
so that doesn't help here.