show static method

void show(
  1. Widget widget
)

Implementation

static void show(Widget widget) {
  if (context != null) {
    showDialog(context: context!, builder: ((context) => widget));
  } else {
    throw Exception(
        "You need do call 'Globals.setContext(context);' above 'return MaterialApp(...'");
  }
}