onStateError method

  1. @protected
void onStateError (Object error, StackTrace stackTrace)
@protected

Method that is called when the state's stream reports an error. Prints the error message by default.

Implementation

@protected
void onStateError(Object error, StackTrace stackTrace) {
  print(error);
  print(stackTrace);
}