of<T> static method

FSelectGroupItemData<T> of<T>(
  1. BuildContext context
)

Return the FSelectGroup's item data.

Implementation

static FSelectGroupItemData<T> of<T>(BuildContext context) {
  final result = context.dependOnInheritedWidgetOfExactType<FSelectGroupItemData<T>>();
  assert(
    result != null,
    "No FSelectGroupItemData<$T> found in context. This likely because FSelectGroup's type parameter could not be inferred. "
    'It is currently inferred as FSelectGroup<$T>. To fix this, provide the type parameter explicitly, i.e. FSelectGroup<MyType>.',
  );
  return result!;
}