of static method
Implementation
static ConstrainedAnimatedReorderableListViewState of(BuildContext context) {
final ConstrainedAnimatedReorderableListViewState? result = context
.findAncestorStateOfType<ConstrainedAnimatedReorderableListViewState>();
assert(() {
if (result == null) {
throw FlutterError.fromParts(<DiagnosticsNode>[
ErrorSummary(
'AnimatedReorderableListViewState.of() called with a context that does not contain a AnimatedReorderableListViewState.',
),
ErrorDescription(
'No AnimatedReorderableListViewState ancestor could be found starting from the context that was passed to AnimatedReorderableListViewState.of().',
),
ErrorHint(
'This can happen when the context provided is from the same StatefulWidget that '
'built the AnimatedReorderableListViewState. ',
),
context.describeElement('The context used was'),
]);
}
return true;
}());
return result!;
}