maybeOf static method

NclWidgetState? maybeOf(
  1. BuildContext context
)

Implementation

static NclWidgetState? maybeOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<_NclInheritedWidget>()
      ?.state;
}