maybeOf static method

ExpressiveStyleScope? maybeOf(
  1. BuildContext context
)

The nearest style scope, or none outside a styled pressable.

Implementation

static ExpressiveStyleScope? maybeOf(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<ExpressiveStyleScope>();