Skip to content

Commit a3534be

Browse files
committed
Fix uses_dynamic_as_bottom errors
1 parent e7ab5be commit a3534be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js_wrapping/lib/util/codec.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class DynamicCodec extends ConditionalCodec {
6262
class JsInterfaceCodec<T extends JsInterface>
6363
extends ConditionalCodec<T, JsObject> {
6464
JsInterfaceCodec(Factory<JsObject, T> decode,
65-
[Predicate<JsObject> acceptEncodedValue])
65+
[Predicate acceptEncodedValue])
6666
: super.fromFactories((T o) => asJsObject(o), decode,
6767
acceptEncodedValue: acceptEncodedValue);
6868
}
@@ -101,7 +101,7 @@ class BiMapCodec<S, T> extends ConditionalCodec<S, T> {
101101
class FunctionCodec<T extends Function>
102102
extends ConditionalCodec<T, dynamic /*JsFunction|Function*/ > {
103103
FunctionCodec(Factory<T, dynamic /*JsFunction|Function*/ > encode,
104-
Factory<JsFunction, T> decode)
104+
Factory<dynamic /*JsFunction|Function*/, T> decode)
105105
: super.fromFactories(encode, decode,
106106
acceptEncodedValue: (o) => o is JsFunction);
107107
}

0 commit comments

Comments
 (0)