reportError method
Implementation
void reportError(Object error, StackTrace stackTrace) {
if (kDebugMode) {
if (error is UnsupportedError) {
// ignore: avoid_print
print(
'$runtimeType does not have native support in this operating system. Using Dart implementation instead.');
} else {
// ignore: avoid_print
print(
'----\nCRYPTOGRAPHY PLUGIN HAD UNEXPECTED ERROR:\n$error\n$stackTrace\n----');
}
}
}