Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@MichaelMarner MichaelMarner released this 27 Jul 06:23
· 14 commits to master since this release

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.