logErrorDetails method
Log the error
Implementation
@override
void logErrorDetails(FlutterErrorDetails details, {bool? force}) {
if (logError || (force ?? false)) {
super.logErrorDetails(details);
} else {
// Won't log this time with this call.
logError = true; // Next time.
}
}