of static method

ProductPageState of(
  1. BuildContext context
)

Implementation

static ProductPageState of(BuildContext context) {
  final ProductPageState? result = context
      .findAncestorStateOfType<ProductPageState>();
  assert(result != null, 'No ProductPageState found in context');
  return result!;
}