of static method

get SparkFormItemData of context

Implementation

static SparkFormItemData? of(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<SparkFormData>()
      ?.formData;
}