of static method

Implementation

static NiceToastContainerState? of(BuildContext context) =>
    context.findAncestorStateOfType<NiceToastContainerState>();