accepts static method

bool accepts(
  1. Unit u
)

Implementation

static bool accepts(Unit u) => u.id < 0;