of static method
The closest instance of this class that encloses the given context.
If no such instance exists, returns an instance created by DefaultShogiBoardStyle.fallback
, which contains fallback values.
Implementation
static DefaultShogiBoardStyle of(BuildContext context) =>
context.dependOnInheritedWidgetOfExactType<DefaultShogiBoardStyle>() ??
const DefaultShogiBoardStyle.fallback();