Critic class

Constructors

Critic()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
logCapture → LogCapture
Log capture instance. Access the underlying LogBuffer via Critic().logCapture.buffer if you need to add custom entries.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

captureLog(String message, {String? level, String? tag, DateTime? timestamp}) → void
Writes a log entry directly into the SDK's log buffer.
initialize(String apiToken, {String? baseUrl}) → Future<Zone>
initializeAndRun(String apiToken, void body(), {String? baseUrl}) → Future<void>
Initializes the SDK and runs body inside the log-capture zone so that all print() calls are automatically captured.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
submitReport(BugReport report) → Future<BugReport>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance → Critic
Returns the singleton Critic instance.
no setter