Clone a list to make it writable.
This should be used to create a writable object that can be modified
List<Object?> cloneList(List<Object?> value) => cloneValue(value) as List<Object?>;