FileHandler class

Inheritance

Constructors

FileHandler(File file, {FileSupplier? fileSupplier, bool enableDeviceParameters = true, bool enableApplicationParameters = true, bool enableStackTrace = true, bool enableCustomParameters = true, bool printLogs = false, bool handleWhenRejected = false})

Properties

enableApplicationParameters bool
final
enableCustomParameters bool
final
enableDeviceParameters bool
final
enableStackTrace bool
final
file File
A file that should be written to. Is overwritten by fileSupplier.
final
fileSupplier FileSupplier?
Function that returns a file that should be written to. If this is set, file has no effect.
final
handleWhenRejected bool
final
hashCode int
The hash code for this object.
no setterinherited
localizationOptions LocalizationOptions
Get currently used localization options
getter/setter pairinherited
logger Catcher2Logger
Logger instance
getter/setter pairinherited
printLogs bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getSupportedPlatforms() List<PlatformType>
Get list of supported platforms
override
handle(Report report, BuildContext? context) Future<bool>
Method called when report has been accepted by user
override
isContextRequired() bool
Check if given report mode requires context to run
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldHandleWhenRejected() bool
Check whether report mode should auto confirm without user confirmation.
override
toString() String
Can be overridden to provide more information about this handler.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited