Clarification on Design Choice in ListView DividerItemDecoration

While reviewing ListView’s DividerItemDecoration, I noticed that it modifies child layout parameters directly. I’m trying to understand whether this is necessary for the margins behavior, or if it would be preferable to keep decoration purely responsible for drawing and offsets. Could you clarify the design intent here?