ErrorCallback typedef Null safety

ErrorCallback = void Function(String)

Callback which returns the message from an error

Implementation

typedef ErrorCallback = void Function(String);