CaptureState class sealed

Annotations
  • @freezed

Constructors

CaptureState.captured()
const
factory
CaptureState.capturing()
const
factory
CaptureState.error(String error)
const
factory
CaptureState.none()
const
factory

Properties

didCaptureSuccessfully bool
no setter
error String?
no setter
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 none(_None value), required TResult capturing(_Capturing value), required TResult captured(_Captured value), required TResult error(_Error value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? none(_None value)?, TResult? capturing(_Capturing value)?, TResult? captured(_Captured value)?, TResult? error(_Error value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult none(_None value)?, TResult capturing(_Capturing value)?, TResult captured(_Captured value)?, TResult error(_Error value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult none()?, TResult capturing()?, TResult captured()?, TResult error(String error)?, 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 none(), required TResult capturing(), required TResult captured(), required TResult error(String error)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? none()?, TResult? capturing()?, TResult? captured()?, TResult? error(String error)?}) → TResult?
inherited

Operators

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