onError method

void onError(
  1. dynamic error
)

Called when an error occurs within the future being run

Implementation

void onError(error) {}