onError method

void onError(
  1. dynamic handler(
    1. dynamic data
    )
)

listen to on error event

Implementation

void onError(Function(dynamic data) handler) {}