MoodleTaskWidget constructor

const MoodleTaskWidget({
  1. Key? key,
  2. required MoodleTask task,
  3. MoodleTaskWidgetDisplayMode displayMode = MoodleTaskWidgetDisplayMode.nameAndCourse,
  4. bool enableContextMenu = true,
  5. List<ContextMenuButtonConfig> additionalContextMenuItems = const [],
})

Renders the given task and the given displayMode.

Implementation

const MoodleTaskWidget({
  super.key,
  required this.task,
  this.displayMode = MoodleTaskWidgetDisplayMode.nameAndCourse,
  this.enableContextMenu = true,
  this.additionalContextMenuItems = const [],
});