DevConsole class

Utility class for developer console logging.

Provides methods for logging messages, errors, and stack traces with configurable output methods (dart:developer log or debugPrint).

Constructors

DevConsole()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

printAlways(String s) → void
Prints a message unconditionally (in all build modes).
printCaught(String msg, Object ex, StackTrace? stackTrace) → void
Prints a caught exception with its stack trace.
printIfDebug(String s) → void
Prints a message only in debug mode.

Constants

useDevLog → const bool
Whether to use dart:developer log (true) or debugPrint (false).