I have the following form of assignment & null checks to avoid double lookups in my maps. Is there a better or more idiomatic way to do this in Dart?
bool ok(T obj) => obj != null; bool nul(T obj) => obj == null;