Node<T> constructor

Node<T>({
  1. T? data,
  2. Node<T>? next,
})

Constructs a Node with optional data and next node.

Implementation

Node({this.data, this.next});