of static method

Implementation

static GuardoStateNotifier of(BuildContext context) {
  final result = maybeOf(context);
  if (result == null) {
    throw FlutterError(
      'GuardoInherited.of() called with a context that does not contain a GuardoInherited.\n'
      'No GuardoInherited ancestor could be found starting from the context that was passed to GuardoInherited.of().\n'
      'The context used was:\n'
      '  $context',
    );
  }
  return result;
}