of static method

Toastify of(
  1. BuildContext context
)

Implementation

static Toastify of(BuildContext context) {
  return context.findAncestorWidgetOfExactType<Toastify>()!;
}