of static method
Implementation
static InspectorState of(BuildContext context) {
final InspectorState? result = maybeOf(context);
if (result != null) {
return result;
}
throw FlutterError.fromParts([
ErrorSummary(
"Inspector.of() error.",
),
context.describeElement("the context"),
]);
}