DefinedName class Core

A workbook defined name (a named range, constant, or formula).

Global names are visible everywhere; a sheet-scoped name sets localSheetId to the 0-based index of its sheet in the workbook's tab order.

Constructors

DefinedName({required String name, required String refersTo, int? localSheetId, String? comment, bool hidden = false})
Creates a defined name. Provide localSheetId to scope it to a single sheet, or leave it null for a workbook-global name.
const

Properties

comment String?
Optional comment.
final
hashCode int
The hash code for this object.
no setteroverride
hidden bool
Whether the name is hidden from Excel's name manager.
final
isGlobal bool
Whether this name is workbook-global (vs. scoped to a single sheet).
no setter
localSheetId int?
0-based sheet index for a sheet-scoped name, or null for a global name.
final
name String
The name, e.g. Tax or a built-in like _xlnm.Print_Area.
final
refersTo String
What the name refers to: a range/formula such as 'Sheet1'!$A$1:$B$2, or a constant.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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