OnError typedef Null safety

OnError = void Function(Object, Reaction)

Implementation

typedef OnError = void Function(Object, Reaction);