OrganizationState class

Inheritance

Constructors

OrganizationState.new({Set<LoadingState> loadingStates = const {}, Set<Message> messages = const {}, List<Organization> organizations = const [], Org? selectedOrgData})
const

Properties

additionalProps List<Object?>
The concrete class must implement this method to return a list of additional properties that are specific to the concrete class.
no setteroverride
hasError → dynamic
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
loadingStates Set<LoadingState>
finalinherited
messages Set<Message>
finalinherited
organizations List<Organization>
All orgs current logged in user is a member of
final
owned → dynamic
Orgs user is an owner of
no setter
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedOrgData → Org?
Current org user is viewing in profile
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

addMessage(Message message, [Object? error, StackTrace? stackTrace]) OrganizationState
inherited
clearMessages() OrganizationState
inherited
copyWith({Set<LoadingState>? loadingStates, Set<Message>? messages, List<Organization>? organizations, Org? selectedOrgData, bool resetSelectedOrgData = false}) OrganizationState
The concrete class must implement this method to return a new instance of the state with the given parameters.
override
endLoading(LoadingState loadingState) OrganizationState
inherited
isLoading(List<LoadingState> loadingStates) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peekMessage() → Message?
inherited
removeMessage(Message message) OrganizationState
inherited
startLoading(LoadingState loadingState, {dynamic clearMessages = true}) OrganizationState
inherited
toString() String
A string representation of this object.
inherited

Operators

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