DefaultShogiBoardStyle.fallback constructor

const DefaultShogiBoardStyle.fallback({
  1. Key? key,
})

A const-constructible DefaultShogiBoardStyle that provides fallback values.

Returned from of when the given BuildContext doesn't have an enclosing default ShogiBoardStyle.

This constructor creates a DefaultShogiBoardStyle that lacks a child, which means the constructed value cannot be incorporated into the tree.

Implementation

const DefaultShogiBoardStyle.fallback({Key? key})
    : style = const ShogiBoardStyle(),
      super(
        key: key,
        child: const _NullWidget(),
      );