Task.withId constructor

Task.withId(
  1. String type
)

Implementation

Task.withId(this.type) : id = const Uuid().v4();