GraphNode constructor

GraphNode(
  1. String id
)

Implementation

GraphNode(this.id) {
  if (id.isEmpty) {
    throw FlutterError('id不能为空');
  }
}