of static method

Returns the current OnBoardingStateController instance from the widget tree.

Implementation

static OnBoardingStateController of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<OnBoardingStateController>()!;