of static method
The table in force at context: the nearest DesignHapticsScope's,
else the platform's own (const DesignHaptics()).
Implementation
static DesignHaptics of(BuildContext context) =>
context
.dependOnInheritedWidgetOfExactType<DesignHapticsScope>()
?.haptics ??
const DesignHaptics();