Lifecycle<T> class

Implementers
Annotations
  • @freezed

Constructors

Lifecycle.start(T t)
const
factory
Lifecycle.stop(T t)
const
factory

Properties

copyWith → $LifecycleCopyWith<T, Lifecycle<T>>
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
t → T
no setterinherited

Methods

map<TResult extends Object?>({required TResult start(Start<T> value), required TResult stop(Stop<T> value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? start(Start<T> value)?, TResult? stop(Stop<T> value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult start(Start<T> value)?, TResult stop(Stop<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult start(T t)?, TResult stop(T t)?, 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 start(T t), required TResult stop(T t)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? start(T t)?, TResult? stop(T t)?}) → TResult?
inherited

Operators

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