Key class

A lightweight key class used to identify and export specific DSL nodes.

This mirrors Flutter's Key semantics but has no Flutter dependency, allowing DSL files to remain pure Dart.

Usage

Container(
  key: Key('my_container'),
  height: 100,
  color: 'Colors.red',
)

Then export via CLI:

dart run sdui export home_screen my_container

Constructors

Key(String value)
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The string identifier for this key.
final

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