of static method

Implementation

static QuestionAnswer of(BuildContext context) {
  final result = context.dependOnInheritedWidgetOfExactType<QuestionAnswer>();
  assert(result != null, 'No QuestionAnswer found in context');
  return result!;
}