LocalFileReporter class

Reporter that saves error reports to local file

Constructors

LocalFileReporter({bool enabled = true, String? customLogDirectory})

Properties

customLogDirectory → String?
final
enabled → bool
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearReports() → Future<bool>
Clear all error reports
getAllReports() → Future<List<ApiErrorReport>>
Get all error reports from local storage
getLogDirectoryPath() → String
Get log directory path Note: This may throw an error if initialize() hasn't been called yet
initialize() → Future<void>
Initialize the log directory
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
report(ApiErrorReport report) → Future<bool>
Save error report to local file
toString() → String
A string representation of this object.
inherited

Operators

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