of static method

WalletShapes of(
  1. BuildContext context
)

The registered shapes, or WalletShapes.forPlatform for the theme's platform when the host registered none. Like WalletIcons, a missing hook is not a wiring error: the defaults are a complete, working set.

Implementation

static WalletShapes of(BuildContext context) {
  final theme = Theme.of(context);
  return theme.extension<WalletShapes>() ??
      WalletShapes.forPlatform(theme.platform);
}