OverlayCategory class Overlays

Represents a single category within an overlay.

A category is a node in an overlay's hierarchical classification. It contains a display label, an icon, a stable identifier and a reference to its parent overlay. Categories may contain nested subcategories which form the overlay's hierarchy.

See also:

  • OverlayInfo: Parent overlay information that exposes categories for a dataset.
Implementers

Constructors

OverlayCategory({required String name, required int overlayuid, required List<OverlayCategory> subcategories, required int uid, required Img img})
Create a new OverlayCategory instance.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasSubcategories → bool
True when this category contains one or more subcategories.
no setter
image → Uint8List?
The category icon as raw bytes suitable for rendering.
no setter
img ↔ Img
The category icon as an Img wrapper.
getter/setter pair
name ↔ String
The category display name.
getter/setter pair
overlayuid ↔ int
The parent OverlayInfo UID.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subcategories ↔ List<OverlayCategory>
Nested subcategories of this category.
getter/setter pair
uid ↔ int
Stable OverlayCategory identifier.
getter/setter pair

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