TemplatesConfig constructor Null safety

const TemplatesConfig(
  1. {String? page,
  2. String? section}
)

Implementation

const TemplatesConfig({
  String? page,
  String? section,
})  : page = page ?? 'index.html',
      section = section ?? 'section.html';