LearningTemplate constructor

const LearningTemplate({
  1. Key? key,
  2. required List<Course> courses,
  3. String title = 'Learn',
  4. String greeting = 'Good day, learner!',
  5. String continueTitle = 'Continue learning',
  6. String? continueSubtitle,
  7. List<Widget> stats = const <Widget>[],
  8. VoidCallback? onSearch,
  9. VoidCallback? onNotifications,
  10. Widget? header,
  11. PreferredSizeWidget? appBar,
})

Implementation

const LearningTemplate({
  super.key,
  required this.courses,
  this.title = 'Learn',
  this.greeting = 'Good day, learner!',
  this.continueTitle = 'Continue learning',
  this.continueSubtitle,
  this.stats = const <Widget>[],
  this.onSearch,
  this.onNotifications,
  this.header,
  this.appBar,
});