of static method

Implementation

static DraftModeFormState? of(BuildContext context) {
  return context.findAncestorStateOfType<DraftModeFormState>();
}