Replaces the abstract classes StateEncoder
, ActionEncoder
, and ActionDecoder
with function typedefs.
This is inline with the Dart styleguide, which advocates using function typedefs instead of single method abstract classes.
This will only affect you if you are using custom encoders/decoders. No changes if you are using remote devtools as-is.
Before:
class MyActionEncoder extends ActionEncoder {
String encode(dynamic action) {
// custom encoding logic here...
}
}
After:
ActionEncoder MyActionEncoder = (dynamic action) {
// custom encoding logic here
}
Again, for most people this will require no changes to code.