Console class

A class that provides logging functionality for the console.

Constructors

Console()

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

consoleLisitener(Function function) → void
Sets up a console listener that captures print statements and errors.
log(dynamic message, {LogType type = LogType.normal, Color textColor = Colors.white}) → void
Logs a message to the console.
logHttp({required String url, required String method, required Map<String, dynamic> headers, required Map<String, dynamic> body, Color textColor = Colors.black, Color backgroundColor = const Color.fromARGB(255, 207, 223, 190), required int statusCode, required Map<String, dynamic> response, BodyType bodyType = BodyType.raw}) → void
Logs an HTTP request to the console.
logSql({required String dbName, required String spName, required Map<String, dynamic> params, Color textColor = Colors.black, Color backgroundColor = const Color.fromARGB(255, 207, 223, 190)}) → void
Logs an SQL query to the console.