DomainResult<T> class

Annotations
  • @freezed

Constructors

DomainResult.noConnection()
const
factory
DomainResult.result(T result)
const
factory

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

map<TResult extends Object?>({required TResult noConnection(_NoConnection<T> value), required TResult result(_Result<T> value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult noConnection(_NoConnection<T> value)?, TResult result(_Result<T> value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult noConnection(_NoConnection<T> value)?, TResult result(_Result<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult noConnection()?, TResult result(T result)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult noConnection(), required TResult result(T result)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult noConnection()?, TResult result(T result)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited