ConsoleMessage class Null safety

Class representing a JavaScript console message from WebCore. This could be a issued by a call to one of the console logging functions (e.g. console.log('...')) or a JavaScript error on the page.

To receive notifications of these messages, use the WebView.onConsoleMessage event.

Constructors

ConsoleMessage({String message = "", ConsoleMessageLevel messageLevel = ConsoleMessageLevel.LOG})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
message String
read / write
messageLevel ConsoleMessageLevel
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? map) ConsoleMessage?