Skip to content

Commit e0b4ae3

Browse files
committed
Annotate MyDecoder.add in web example to satisfy type_annotate_public_apis
dart analyze flagged the public override `add(obj)` in the web example for a missing type annotation. Annotate it as `dynamic add(dynamic obj)` to match the base Decoder.add signature, leaving `dart analyze` clean.
1 parent 8d716f4 commit e0b4ae3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class MyEncoder extends Encoder {
5050

5151
class MyDecoder extends Decoder {
5252
@override
53-
add(obj) {
53+
dynamic add(dynamic obj) {
5454
print('MyDecoder: $obj');
5555
return super.add(obj);
5656
}

0 commit comments

Comments
 (0)