ErrorCallback typedef Null safety

ErrorCallback = void Function(String)

Implementation

typedef ErrorCallback = void Function(String);