of static method

CropState? of(
  1. BuildContext context
)

Implementation

static CropState? of(BuildContext context) =>
    context.findAncestorStateOfType<CropState>();