ErrorCallback typedef Null safety

ErrorCallback = Widget Function(BuildContext context, Object? error)

Implementation

typedef Widget ErrorCallback(BuildContext context, Object? error);