LibrarySetter class

Wrapper class for library-scoped setters. Stores a setter name, its function, and optionally its canonical source URI for deduplication across re-exports.

Setters are paired with getters to enable full read-write access to top-level variables that use getter/setter pairs.

Constructors

LibrarySetter(String name, void setter(Object? value), {String? sourceUri})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setter → void Function(Object? value)
final
sourceUri String?
The canonical source URI where this setter is defined. See LibraryVariable.sourceUri for details.
final

Methods

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 ==(Object other) bool
The equality operator.
inherited