Defect<E> class
Represents an uncaught error.
Constructors
- Defect(dynamic error, StackTrace defectStackTrace, [StackTrace? stackTrace])
-
const
- Defect.current(dynamic error, [StackTrace? stackTrace])
-
factory
Properties
- defectStackTrace → StackTrace
-
final
- error → dynamic
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
final
- stackTraceSkipFrames → int
-
finalinherited
Methods
-
lift<
E2> () → Cause< E2> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prettyStackTrace(
[String prefix = ""]) → String -
override
-
toString(
) → String -
A string representation of this object.
override
-
when<
B> ({required B failure(Failure< E> _), required B defect(Defect<E> _), required B interrupted(Interrupted<E> _)}) → B -
override
-
withTrace(
StackTrace stack) → Defect< E> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override