simpleAlert static method

void simpleAlert({
  1. required dynamic context,
  2. required String title,
  3. String? text,
  4. String? button,
})

Implementation

static void simpleAlert({
  required context,
  required String title,
  String? text,
  String? button,
}) {
  showDialog(
    barrierDismissible: true,
    context: context,
    builder: (context) => Layout(
      type: 'simple',
      title: title,
      text: text,
      button: button,
    ),
  );
}