use this for catchError in Future functions
Future<Null> onError(Object o) async { log(o.toString()); }