set<T> method
Always throws an StateError since immutable data classes cannot be modified.
Implementation
@override
void set<T>(String field, T value) {
throw StateError(
'Cannot set field "$field" on immutable data class',
);
}