maybeStyleOf static method

DraftModePlatformStyle? maybeStyleOf(
  1. BuildContext context
)

Returns the nearest framework-owned platform style override, if present.

Implementation

static DraftModePlatformStyle? maybeStyleOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<DraftModePlatformScope>()
      ?.style;
}