logDartError method
Manually logs a Dart error or exception to Embrace. You should use this if you want to capture errors/exceptions and report them to Embrace. A good example would be to call this function from within a try-catch block.
It is not necessary to call this function for uncaught Flutter errors or Dart errors originating from the root isolate - Embrace automatically captures these errors already.
Implementation
@override
void logDartError(Object error, StackTrace stack) {
EmbracePlatform.instance.logDartError(
stack.toString(),
error.toString(),
null,
null,
errorType: error.runtimeType.toString(),
);
}