RunCatchingMx mixin
- Mixin applications
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
-
runCatching<
R> (FutureOr< R?> block(), {FutureOr<R?> onSuccess(R data)?, FutureOr<R?> onFailure(Object e, StackTrace s)?, dynamic ignoreSkipError = true}) → FutureOr<R?> -
ignoreSkipError
same asupdate((o)=>null)
true: SkipError will not triggeronFailure
when true ref skpIf/skpNull -
skpIf(
bool condition, String reason) → void -
if you want interrupt the normal flow, but not trigger
runCatching.onFailure
-
skpIfNull(
Object? obj, String reason) → void -
if
obj
==null, throw SkipError ref skpIf -
skpNull<
T> (T? obj, String reason) → T -
if
obj
== null: throw SkipError else: returnobj
! -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited