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