of<T> static method
Implementation
static SimpleGroupedChipsState? of<T>(BuildContext context,
{bool nullOk = false}) {
final SimpleGroupedChipsState<T>? result =
context.findAncestorStateOfType<SimpleGroupedChipsState<T>>();
if (nullOk || result != null) return result;
throw FlutterError.fromParts(<DiagnosticsNode>[
ErrorSummary(
'SimpleGroupedCheckbox.of() called with a context that does not contain an SimpleGroupedCheckbox.'),
ErrorDescription(
'No SimpleGroupedCheckbox ancestor could be found starting from the context that was passed to SimpleGroupedCheckbox.of().'),
context.describeElement('The context used was')
]);
}