)]}'
{
  "commit": "17abe7a3b7a91f0879d12f776184564c858f953b",
  "tree": "4eb4d0c1260cad0dba9221e17f8b492de4781bbe",
  "parents": [
    "53e002aee859698e9d2da329ef1d8ec075de63c0"
  ],
  "author": {
    "name": "Sam Rawlins",
    "email": "srawlins@google.com",
    "time": "Tue Dec 22 10:13:56 2020 -0800"
  },
  "committer": {
    "name": "Sam Rawlins",
    "email": "srawlins@google.com",
    "time": "Tue Dec 22 10:13:56 2020 -0800"
  },
  "message": "Return valid type from Future.catchError.\n\nAn upcoming feature to the Dart analyzer [0] will report Future.catchError [1]\n`onError` handlers which return values of invalid type. Currently this is not\nreported because the `onError` handler function type cannot be accurately\nexpressed. An `onError` handler for `Future\u003cT\u003e.catchError` must be either\n`FutureOr\u003cT\u003e Function(dynamic)` or `FutureOr\u003cT\u003e Function(dynamic, StackTrace)`.\nIn either case, the return type of the function is `FutureOr\u003cT\u003e`.\n\nThis CL corrects `onError` handler(s) to return a value of a valid type (typically `null`).\n\n[0]: https://github.com/dart-lang/sdk/issues/35825\n[1]: https://api.dart.dev/dev/2.12.0-149.0.dev/dart-async/Future/catchError.html\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "73acc241cc6cc4b27216195ddfc918e1a88b9cb7",
      "old_mode": 33188,
      "old_path": "lib/src/usage_impl.dart",
      "new_id": "c774c6f9999f39611da6c9a5854fdc7012a8d3ca",
      "new_mode": 33188,
      "new_path": "lib/src/usage_impl.dart"
    }
  ]
}
