dialogDelete function Null safety

Future dialogDelete(
  1. void onTapOk(
      ),
    1. [String? deleteType,
    2. String? divisor]
    )

    Implementation

    Future dialogDelete(void Function() onTapOk,
        [String? deleteType, String? divisor]) {
      return dialog(
        titleText: "Aviso!!",
        contentText:
            "Deseja deletar ${divisor ?? "este"} ${deleteType ?? 'iten'}? Esta ação não poderá ser desfeita!!",
        cancelButtonText: "Cancelar",
        okButtonText: "Deletar",
        onTapOk: onTapOk,
      );
    }