RouterMain constructor

const RouterMain({
  1. String name = '',
  2. String className = '',
  3. String? restorationId,
  4. String navClassName = '',
  5. String classToNameReg = '',
  6. required dynamic page,
  7. List<RouterPage> pages = const [],
  8. PageBuildFn? pageBuilder,
  9. bool genKey = false,
  10. bool private = true,
  11. Function? redirectFn,
  12. Function? errorBuilder,
})

Implementation

const RouterMain({
  this.name = '',
  this.className = '',
  this.restorationId,
  this.navClassName = '',
  this.classToNameReg = '',
  required this.page,
  this.pages = const [],
  this.pageBuilder,
  this.genKey = false,
  this.private = true,
  this.redirectFn,
  this.errorBuilder,
}) : groupList = const [];