onError method

void onError(
  1. dynamic err
)

Implementation

void onError(err) {
  print('got error: $err');
}