logger property

(FutureOr<void> Function(Object, StackTrace?, {Object? reason})?) logger
getter/setter pair

A logger function that is called when an error is notified.

The signature matches that of the recordError() method in the firebase_crashlytics package (although this logger does not have some named parameters existing in recordError()), and thus the FirebaseCrashlytics.recordError can be assigned to the logger as is if you want to leave logging operations to Crashlytics.

Implementation

FutureOr<void> Function(Object, StackTrace?, {Object? reason})? logger;