chore: mark node id as non final (#1070)

This commit is contained in:
Lucas 2025-03-17 11:39:52 +08:00 • committed by GitHub
commit 5070212ee0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,10 @@ final class Node extends ChangeNotifier with LinkedListEntry<Node> {
final String type;
/// The id of the node.
final String id;
///
/// If not provided, it will be generated by [nanoid].
/// In most cases, you don't need to modify it after the node is created.
String id;
@Deprecated('Use type instead')
String get subtype => type;