FlutterErrorEvent class abstract
Represents a Flutter error event with diagnostic information.
- Annotations
-
- @Freezed(toJson: true)
Constructors
-
FlutterErrorEvent.new({@JsonKey(includeToJson: false) required Map<
String, dynamic> json, required String nodeId, required String type, required String message, required DateTime timestamp, @JsonKey(includeToJson: false) Instance? diagnostics, @JsonKey(includeToJson: false) StackTrace? stackTrace, @Default(ErrorSeverity.error) ErrorSeverity severity}) -
Creates a new FlutterErrorEvent instance.
constfactory
Properties
-
copyWith
→ $FlutterErrorEventCopyWith<
FlutterErrorEvent> -
Create a copy of FlutterErrorEvent
with the given fields replaced by the non-null parameter values.
no setterinherited
- diagnostics → Instance?
-
Diagnostic information about the error.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
json
→ Map<
String, dynamic> -
The JSON data associated with the error event.
no setterinherited
- message → String
-
The error message.
no setterinherited
- nodeId → String
-
The unique identifier for the error event.
no setterinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- renderedErrorText → String
-
no setter
- renderFlexId → String
-
The ID of the RenderFlex widget that caused the error.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → ErrorSeverity
-
The severity level of the error.
no setterinherited
- stackTrace → StackTrace?
-
The stack trace of the error, if available.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setter - timestamp → DateTime
-
When the error occurred.
no setterinherited
- type → String
-
The type of error (e.g., 'Flutter Error', 'VM Error').
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this FlutterErrorEvent to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited