Visibility class Null safety

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.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

compareTo(Visibility other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
Visibility._(0)
protected → const Visibility
Visibility._(1)
public → const Visibility
Visibility._(2)