of static method

Implementation

static QuillEditorProvider of(BuildContext context) {
  final provider = maybeOf(context);
  if (provider == null) {
    if (kDebugMode) {
      debugPrint(
        'The quill editor provider must be provided in the widget tree.',
      );
    }
    throw ArgumentError.checkNotNull(
      'You are using a widget in the Flutter quill library that require '
          'The Quill editor provider widget to be in the parent widget tree '
          'because '
          'The provider is $provider. Please make sure to wrap this widget'
          ' with'
          ' QuillEditorProvider widget. '
          'You might using QuillEditor so make sure to'
          ' wrap them with the quill provider widget and setup the required '
          'configurations',
      'QuillEditorProvider',
    );
  }
  return provider;
}