EscapeGameAlertDialog.oneChild constructor

EscapeGameAlertDialog.oneChild({
  1. Key? key,
  2. String? title,
  3. Color? backgroundColor,
  4. EdgeInsets contentPadding = _defaultContentPadding,
  5. required Widget child,
  6. List<Widget>? actions,
  7. Widget? bottom,
  8. ScrollController? scrollController,
})

Creates a new EscapeGameAlertDialog instance with only one child.

Implementation

EscapeGameAlertDialog.oneChild({
  Key? key,
  String? title,
  Color? backgroundColor,
  EdgeInsets contentPadding = _defaultContentPadding,
  required Widget child,
  List<Widget>? actions,
  Widget? bottom,
  ScrollController? scrollController,
}) : this(
        key: key,
        title: title,
        backgroundColor: backgroundColor,
        contentPadding: contentPadding,
        children: [child],
        actions: actions,
        bottom: bottom,
        scrollController: scrollController,
      );