ComponentLibraryState class

Annotations

Constructors

ComponentLibraryState.initial({@Default(false) bool isLoading, @Default([]) List<ComponentTemplate> allComponents, @Default([]) List<ComponentTemplate> filteredComponents, ComponentType? selectedType, @Default('') String searchQuery, @Default(false) bool hasReachedMax, String? error})
const
factory

Properties

allComponents List<ComponentTemplate>
no setterinherited
copyWith → $ComponentLibraryStateCopyWith<ComponentLibraryState>
no setterinherited
error String?
no setterinherited
filteredComponents List<ComponentTemplate>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasReachedMax bool
no setterinherited
isLoading bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchQuery String
no setterinherited
selectedType ComponentType?
no setterinherited

Methods

map<TResult extends Object?>({required TResult initial(_Initial value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? initial(_Initial value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult initial(_Initial value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult initial(bool isLoading, List<ComponentTemplate> allComponents, List<ComponentTemplate> filteredComponents, ComponentType? selectedType, String searchQuery, bool hasReachedMax, 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(bool isLoading, List<ComponentTemplate> allComponents, List<ComponentTemplate> filteredComponents, ComponentType? selectedType, String searchQuery, bool hasReachedMax, String? error)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? initial(bool isLoading, List<ComponentTemplate> allComponents, List<ComponentTemplate> filteredComponents, ComponentType? selectedType, String searchQuery, bool hasReachedMax, String? error)?}) → TResult?
inherited

Operators

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