validId property
String
get
validId
Get the ID with validation (throws if null)
Implementation
String get validId {
if (id == null || id!.isEmpty) {
throw StateError('Node ID is null or empty');
}
return id!;
}