UserFlags class

A set of Flags a user can have.

Inheritance
Available Extensions

Constructors

UserFlags(int value)
Create a new UserFlags.
const

Properties

first Flag<UserFlags>
The first element.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isActiveDeveloper bool
Whether the user is an Active Developer.
no setter
isBotHttpInteractions bool
Whether the user is a bot which uses only HTTP interactions.
no setter
isBugHunter1 bool
Whether the user has the Bug Hunter level 1 badge.
no setter
isBugHunter2 bool
Whether the user has the Bug Hunter level 2 badge.
no setter
isCertifierModerator bool
Whether the user is a Moderator Programs Alumni.
no setter
isEarlySupporter bool
Whether the user is an Early Nitro Supporter.
no setter
isEmpty bool
Whether this collection has no elements.
no setterinherited
isHypesquad bool
Whether the user is a Hypesquad Events Member.
no setter
isHypesquadHouse1 bool
Whether the user is a House of Bravery Member.
no setter
isHypesquadHouse2 bool
Whether the user is a House of Brilliance Member.
no setter
isHypesquadHouse3 bool
Whether the user is a House of Balance Member.
no setter
isNotEmpty bool
Whether this collection has at least one element.
no setterinherited
isPartner bool
Whether the user is a Partnered Server Owner.
no setter
isStaff bool
Whether the user is a Discord employee.
no setter
isTeamUser bool
Whether the user is a pseudo-user for a Team.
no setter
isVerifiedBot bool
Whether the user is a verified bot.
no setter
isVerifiedDeveloper bool
Whether the user is an Early Verified Bot Developer.
no setter
iterator Iterator<Flag<UserFlags>>
A new Iterator that allows iterating the elements of this Iterable.
no setterinherited
last Flag<UserFlags>
The last element.
no setterinherited
length int
The number of elements in this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
single Flag<UserFlags>
Checks that this iterable has only one element, and returns that element.
no setterinherited
value int
The integer value encoding the flags as a bitfield.
finalinherited

Methods

any(bool test(Flag<UserFlags> element)) bool
Checks whether any element of this iterable satisfies test.
inherited
cast<R>() Iterable<R>
A view of this iterable as an iterable of R instances.
inherited
contains(Object? element) bool
Whether the collection contains an element equal to element.
inherited
defaultToString() String
Same as toString, but only called when dart:mirrors is not available.
inherited
elementAt(int index) Flag<UserFlags>
Returns the indexth element.
inherited
every(bool test(Flag<UserFlags> element)) bool
Checks whether every element of this iterable satisfies test.
inherited
expand<T>(Iterable<T> toElements(Flag<UserFlags> element)) Iterable<T>
Expands each element of this Iterable into zero or more elements.
inherited
firstWhere(bool test(Flag<UserFlags> element), {Flag<UserFlags> orElse()?}) Flag<UserFlags>
The first element that satisfies the given predicate test.
inherited
fold<T>(T initialValue, T combine(T previousValue, Flag<UserFlags> element)) → T
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value
inherited
followedBy(Iterable<Flag<UserFlags>> other) Iterable<Flag<UserFlags>>
Creates the lazy concatenation of this iterable and other.
inherited
forEach(void action(Flag<UserFlags> element)) → void
Invokes action on each element of this iterable in iteration order.
inherited
has(Flag<UserFlags> flag) bool
Returns true if this Flags has the flag enabled, false otherwise.
inherited
join([String separator = ""]) String
Converts each element to a String and concatenates the strings.
inherited
lastWhere(bool test(Flag<UserFlags> element), {Flag<UserFlags> orElse()?}) Flag<UserFlags>
The last element that satisfies the given predicate test.
inherited
map<T>(T toElement(Flag<UserFlags> e)) Iterable<T>
The current elements of this iterable modified by toElement.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reduce(Flag<UserFlags> combine(Flag<UserFlags> value, Flag<UserFlags> element)) Flag<UserFlags>
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
inherited
singleWhere(bool test(Flag<UserFlags> element), {Flag<UserFlags> orElse()?}) Flag<UserFlags>
The single element that satisfies test.
inherited
skip(int count) Iterable<Flag<UserFlags>>
Creates an Iterable that provides all but the first count elements.
inherited
skipWhile(bool test(Flag<UserFlags> value)) Iterable<Flag<UserFlags>>
Creates an Iterable that skips leading elements while test is satisfied.
inherited
take(int count) Iterable<Flag<UserFlags>>
Creates a lazy iterable of the count first elements of this iterable.
inherited
takeWhile(bool test(Flag<UserFlags> value)) Iterable<Flag<UserFlags>>
Creates a lazy iterable of the leading elements satisfying test.
inherited
toList({bool growable = true}) List<Flag<UserFlags>>
Creates a List containing the elements of this Iterable.
inherited
toSet() Set<Flag<UserFlags>>
Creates a Set containing the same elements as this iterable.
inherited
toString() String
A string representation of this object.
inherited
where(bool test(Flag<UserFlags> element)) Iterable<Flag<UserFlags>>
Creates a new lazy Iterable with all elements that satisfy the predicate test.
inherited
whereType<T>() Iterable<T>
Creates a new lazy Iterable with all elements that have type T.
inherited

Operators

operator &(Flags<UserFlags> other) Flags<UserFlags>
Return a set of flags that has all the flags set in both this and other.
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator ^(Flags<UserFlags> other) Flags<UserFlags>
Return a set of flags that has all the flags set in this or in other but not in both.
inherited
operator |(Flags<UserFlags> other) Flags<UserFlags>
Return a set of flags that has all the flags set in either this or other.
inherited
operator ~() Flags<UserFlags>
Returns the opposite of this set of flags.
inherited

Constants

activeDeveloper → const Flag<UserFlags>
The user is an Active Developer.
botHttpInteractions → const Flag<UserFlags>
The user is a bot which uses only HTTP interactions, and as such is shown as online in the member list.
bugHunter1 → const Flag<UserFlags>
The user has the Bug Hunter level 1 badge.
bugHunter2 → const Flag<UserFlags>
The user has the Bug Hunter level 2 badge.
certifierModerator → const Flag<UserFlags>
The user is a Moderator Programs Alumni.
earlySupporter → const Flag<UserFlags>
The user is an Early Nitro Supporter.
hypesquad → const Flag<UserFlags>
The user is a Hypesquad Events Member.
hypesquadHouse1 → const Flag<UserFlags>
The user is a House of Bravery Member.
hypesquadHouse2 → const Flag<UserFlags>
The user is a House of Brilliance Member.
hypesquadHouse3 → const Flag<UserFlags>
The user is a House of Balance Member.
partner → const Flag<UserFlags>
The user is a Partnered Server Owner.
staff → const Flag<UserFlags>
The user is a Discord employee.
teamUser → const Flag<UserFlags>
The user is a pseudo-user for a Team.
verifiedBot → const Flag<UserFlags>
The user is a verified bot.
verifiedDeveloper → const Flag<UserFlags>
The user is an Early Verified Bot Developer.