Flutter – Field assignement not working as intended in Dart
class FooBase { String? name; FooBase({required this.name}); } class Foo extends FooBase{ final String name; Foo({required this.name}) : super(name: name); } void main() { final foo = Foo(name: 'foo'); final fooForm = foo; fooForm.name = 'bar'; print(fooForm.name); } I would…