Curtain constructor Null safety

const Curtain(
  1. {required List<CurtainItem> items,
  2. CurtainSideBarConfig? curtainSideBarConfig,
  3. bool extendBody = false,
  4. void onPageChange(
    1. int page
    )?,
  5. ScaffoldConfig? scaffoldConfig,
  6. TextDirection? direction,
  7. CurtainPageController? controller}
)

Implementation

const Curtain({
  required this.items,
  this.curtainSideBarConfig,
  this.extendBody = false,
  this.onPageChange,
  this.scaffoldConfig,
  this.direction,
  this.controller,
}) : assert(items.length > 0);