of static method
- 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;
}