Success<T> class
Represents a standardized base domain success entity containing a valid computation state.
This class extends Equatable to facilitate structural value comparisons across
different layers of the application, ensuring that two distinct success envelopes
with identical internal states are treated as equal.
T The explicit runtime data type of the underlying encapsulated value.
Properties
- hashCode → int
-
Computes a reliable hash signature mapped directly from the encapsulated state object's hash code value.
no setter
-
props
→ List<
Object?> -
Defines the strict list of target properties used by the
Equatablestructure mixin for entity validation.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited - value → T
-
Exposes the internal encapsulated success payload via a clean, read-only getter wrapper.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String - Returns a clean string formatting reflecting the class name along with its active internal state data.
Operators
-
operator ==(
Object other) → bool - Compares two structural Success wrapper instances based on value equality rather than raw memory address points.