How can a “missing concrete implementation” warning be suppressed?
问题 What can I do to prevent the compiler from throwing the following warning Missing concrete implementation of setter 'MyClass.field' and getter 'MyClass.field' on the following code? import 'package:mock/mock.dart'; class MyClass { String field; } @proxy class MockMyClass extends Mock implements MyClass{} 回答1: Implement noSuchMethod(); When a class has a noSuchMethod() it implements any method. I assume this applies to getter/setter as well because they are just special methods (never tried