InfoDialog.show constructor

InfoDialog.show(
  1. BuildContext context, {
  2. String? title,
  3. required Widget content,
  4. required String buttonTitle,
  5. Color? buttonColor,
  6. required bool dismissibleDialog,
  7. required Color backgroundColor,
  8. required bool disableTintColor,
})

Implementation

InfoDialog.show(
  this.context, {
  this.title,
  required this.content,
  required this.buttonTitle,
  this.buttonColor,
  required this.dismissibleDialog,
  required this.backgroundColor,
  required this.disableTintColor,
}) {
  // Decide dialog layout based on platform
  if (defaultTargetPlatform == TargetPlatform.iOS) {
    _cupertinoView();
  } else {
    _materialView();
  }
}