error method

void error(
  1. dynamic message, {
  2. Error? error,
  3. Exception? ex,
})

Implementation

void error(dynamic message, {Error? error, Exception? ex}) {
  print(message);
  if (error != null) {
    print(error);
  }
  if (ex != null) {
    print(ex);
  }
}