在Dart我不能这样做?
if (limit != null | pageby != null) { .. }因为我得到这个错误
if (limit != null | pageby != null) { .. }
An equality expression can't be an operand of another equality expression
那我怎么在Dart做一个if (this or that) { .. }?
if (this or that) { .. }
逻辑OR是||。所以你应该使用:
||
if (limit != null || pageby != null) { .. }