onError method

dynamic onError(
  1. int code,
  2. String? error
)

Implementation

onError(int code, String? error) {
  Event event = MediaError(code, error!);
  dispatchEvent(event);
}