register method
Implementation
void register(Map<Object, RenderBox> marks, Object id) {
if (identical(marks, _marks) && id == _id) return;
if (identical(_marks[_id], this)) _marks.remove(_id);
_marks = marks;
_id = id;
_marks[_id] = this;
}