maybeOf static method
Retrieves the DartBlockEditor's ProviderContainer from the context.
Returns null if no DartBlockContainerProvider is found in the widget tree. This allows graceful fallback to the default behavior when not within DartBlockEditor.
Implementation
static ProviderContainer? maybeOf(BuildContext context) {
final provider = context
.dependOnInheritedWidgetOfExactType<DartBlockContainerProvider>();
return provider?.container;
}