ChatListState class

Available extensions

Constructors

ChatListState.data({required List chats})
Data
const
factory
ChatListState.error([String? error])
Error
const
factory
ChatListState.initial()
Initial
const
factory
ChatListState.loading()
Loading
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 initial(_ChatListStateInitial value), required TResult loading(_ChatListStateLoading value), required TResult data(_ChatListStateData value), required TResult error(_ChatListStateError value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? initial(_ChatListStateInitial value)?, TResult? loading(_ChatListStateLoading value)?, TResult? data(_ChatListStateData value)?, TResult? error(_ChatListStateError value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult initial(_ChatListStateInitial value)?, TResult loading(_ChatListStateLoading value)?, TResult data(_ChatListStateData value)?, TResult error(_ChatListStateError value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult initial()?, TResult loading()?, TResult data(List chats)?, 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 initial(), required TResult loading(), required TResult data(List chats), required TResult error(String? error)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? initial()?, TResult? loading()?, TResult? data(List chats)?, TResult? error(String? error)?}) → TResult?
inherited

Operators

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