TaskDescriptor constructor Null safety

  1. @mustCallSuper
TaskDescriptor(
  1. {String? name,
  2. List<Measure>? measures}
)

Implementation

@mustCallSuper
TaskDescriptor({
  String? name,
  List<Measure>? measures,
}) : super() {
  this.name = name ?? 'Task #${_counter++}';
  this.measures = measures ?? [];
}