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, })
-
Creates a defined name. Provide
localSheetIdto scope it to a single sheet, or leave itnullfor a workbook-global name.const
Properties
- comment → String?
-
Optional comment.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
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
nullfor a global name.final - name → String
-
The name, e.g.
Taxor 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