SankeyData(this.name, {String? id}) { if (id == null || id.isEmpty) { this.id = const Uuid().v4().toString().replaceAll('-', ''); } else { this.id = id; } }