cleanup(core): fix dart analyzer warnings