logError function
- Object error,
- StackTrace? stackTrace
Converts an error and optional stack trace into a BurtLog and calls LogsModel.handleLog.
Implementation
void logError(Object error, StackTrace? stackTrace) => models.logs.handleLog(
BurtLog(
level: BurtLogLevel.critical,
title: "Dashboard Error. Click for details",
body: "$error\n$stackTrace",
device: Device.DASHBOARD,
),
);