Result<T> class
Constructors
- Result({bool isSuccessful = false, Log? log, T? obj, dynamic alt})
- Result.error({String? msg, StackTrace? stacktrace, T? obj, Log? log, dynamic alt, String? translationKey})
-
factory
- Result.success({T? obj, Log? log, dynamic alt})
-
factory
Properties
- alt → dynamic
-
final
- hasFailed → bool
-
no setter
- hasFailedOrNull → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSuccessful → bool
-
final
- isSuccessfulObj → bool
-
no setter
- log → Log?
-
final
- obj → T?
-
final
- 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