onError function

Future<Null> onError(
  1. Object o
)

use this for catchError in Future functions

Implementation

Future<Null> onError(Object o) async {
  log(o.toString());
}