error method

void error(
  1. String title, {
  2. String? body,
})

Logs an error.

Use this to indicate that a user-requested action has failed.

Implementation

void error(String title, {String? body}) {
  logger.e(getMessage(title, body));
  final log = BurtLog(level: BurtLogLevel.error, title: title, body: body, device: device);
  socket?.sendLog(log);
}