error abstract method

Future<void> error([
  1. Exception? error
])

Setting the event data is error

Implementation

Future<void> error([Exception? error]);