rrousselGit / freezed

Code generation for immutable classes that has a simple syntax/API without compromising on the features.
https://pub.dev/packages/freezed
1.92k stars 236 forks source link

LinkedHashMap, HashMap is mutable with @freezed #1084

Open CuongNV12 opened 5 months ago

CuongNV12 commented 5 months ago

Describe the bug LinkedHashMap, HashMap is mutable with @freezed

Expected behavior LinkedHashMap, HashMap must be immutable

rrousselGit commented 5 months ago

They are from the SDK. Do you mean that they should be wrapped in an UnmodifiableMapView?