Visibility class

Represents the visibility of a symbol.

Symbols may be public, protected, or private. The significance of a symbol's visibility is semantic and specific to the interpreter/compiler; this package attaches no specific meaning to it.

Visibility instances can be compared using the <, <=, >, and >= operators. The evaluation of the aforementioned operators is logical; for example, a private symbol is less visible than a public symbol, so private < public.

In a nutshell: private < protected < public.

Implemented types

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

compareTo(Visibility other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator <(Visibility other) bool
operator <=(Visibility other) bool
operator ==(Object other) bool
The equality operator.
inherited
operator >(Visibility other) bool
operator >=(Visibility other) bool

Constants

private → const Visibility
protected → const Visibility
public → const Visibility