EzDialog constructor

EzDialog({
  1. Key? key,
  2. Key? widgetKey,
  3. List<Widget>? actions,
  4. Widget? content,
  5. List<Widget>? contents,
  6. Widget? title,
  7. CupertinoAlertDialogData cupertino(
    1. BuildContext,
    2. PlatformTarget
    )?,
  8. MaterialAlertDialogData material(
    1. BuildContext,
    2. PlatformTarget
    )?,
  9. bool needsClose = true,
})

Styles a PlatformAlertDialog with EzConfig Adds an optional contents parameter to provide instead of the traditional content If provided, contents will be used in an EzScrollView Only one option can be provided Optionally remove the "Close" action on iOS via needsClose

Implementation

EzDialog({
  this.key,
  this.widgetKey,
  this.actions,
  this.content,
  this.contents,
  this.title,
  this.cupertino,
  this.material,
  this.needsClose = true,
}) : assert(content == null || contents == null,
          'Either content or contents must be provided, not both.');