PrefDialog constructor

const PrefDialog({
  1. Key? key,
  2. required List<Widget> children,
  3. Widget? title,
  4. Widget? submit,
  5. bool? onlySaveOnSubmit,
  6. bool dismissOnChange = false,
  7. Widget? cancel,
  8. List<Widget> actions = const [],
  9. Function? onSubmit,
})

Create a Preference Dialog

Implementation

const PrefDialog({
  Key? key,
  required this.children,
  this.title,
  this.submit,
  bool? onlySaveOnSubmit,
  this.dismissOnChange = false,
  this.cancel,
  this.actions = const [],
  this.onSubmit,
}) : super(key: key, cache: onlySaveOnSubmit ?? submit != null);