showDialog method

String showDialog(
  1. BuildContext context,
  2. UpBaseDialog dialog, {
  3. dynamic data,
})

Calls the dialog listener and returns Dialog Completer ID.

Implementation

String showDialog(BuildContext context, UpBaseDialog dialog, {dynamic data}) {
  String uuid = _createNewDialogCompleter();

  if (data != null) {
    dialog.show(context, uuid, data: data);
  } else {
    dialog.show(context, uuid);
  }

  return uuid; //getCompleter(uuid).future;
}