of static method

NclWidgetState of(
  1. BuildContext context
)

Implementation

static NclWidgetState of(BuildContext context) {
  final state = maybeOf(context);
  if (state == null) {
    throw FlutterError(
        'NclWidget.of() called with a context that does not contain an NclWidget.');
  }
  return state;
}