maybeStyleOf static method
Returns the nearest framework-owned platform style override, if present.
Implementation
static DraftModePlatformStyle? maybeStyleOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<DraftModePlatformScope>()
?.style;
}