CommonValueFailure<T> class

Annotations
  • @freezed

Constructors

CommonValueFailure.invalid({@Default.new(common_error_invalidEntity) String code, required String failedValue})
const
factory
CommonValueFailure.missing({@Default.new(common_error_missingValue) String code, @Default.new("") String failedValue})
const
factory

Properties

code String
no setterinherited
copyWith → $CommonValueFailureCopyWith<T, CommonValueFailure<T>>
no setterinherited
failedValue String
no setterinherited
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 missing(_Missing<T> value), required TResult invalid(_Invalid<T> value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult missing(_Missing<T> value)?, TResult invalid(_Invalid<T> value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult missing(_Missing<T> value)?, TResult invalid(_Invalid<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult missing(String code, String failedValue)?, TResult invalid(String code, String failedValue)?, 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 missing(String code, String failedValue), required TResult invalid(String code, String failedValue)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult missing(String code, String failedValue)?, TResult invalid(String code, String failedValue)?}) → TResult?
inherited

Operators

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