NomoDialog constructor

const NomoDialog({
  1. required Widget content,
  2. List<Widget>? actions,
  3. String? title,
  4. bool? showCloseButton = true,
  5. double? elevation = 2,
  6. BorderRadiusGeometry? borderRadius,
  7. TextStyle? titleStyle,
  8. double? widthRatio,
  9. EdgeInsetsGeometry? padding,
  10. EdgeInsetsGeometry? margin,
  11. double? maxWidth,
  12. Color? backgroundColor,
  13. Widget? titleWidget,
  14. Widget? closeButton,
  15. Widget? contentSpacing,
  16. Widget? leading,
  17. bool scrollabe = false,
  18. bool centerTitle = true,
  19. Key? key,
})

Implementation

const NomoDialog({
  required this.content,
  this.actions,
  this.title,
  this.showCloseButton = true,
  this.elevation = 2,
  this.borderRadius,
  this.titleStyle,
  this.widthRatio,
  this.padding,
  this.margin,
  this.maxWidth,
  this.backgroundColor,
  this.titleWidget,
  this.closeButton,
  this.contentSpacing,
  this.leading,
  this.scrollabe = false,
  this.centerTitle = true,
  super.key,
}) : assert(
        titleWidget == null || title == null,
        'title and titleWidget cannot be used together',
      );