RPAppTask constructor

RPAppTask({
  1. String? name,
  2. List<Measure>? measures,
  3. required String type,
  4. String title = '',
  5. String? description = '',
  6. String instructions = '',
  7. int? minutesToComplete,
  8. Duration? expire,
  9. bool notification = false,
  10. required RPTask rpTask,
})

Implementation

RPAppTask({
  super.name,
  List<Measure>? measures,
  required super.type,
  super.title,
  super.description,
  super.instructions,
  super.minutesToComplete,
  super.expire,
  super.notification,
  required this.rpTask,
}) {
  // Add the survey as a measure type to be collected and later uploaded
  //   - issue #342
  super.measures = (measures ?? [])
    ..add(Measure(type: SurveySamplingPackage.SURVEY));
}