of static method
Implementation
static QuillToolbarProvider of(BuildContext context) {
final provider = maybeOf(context);
if (provider == null) {
if (kDebugMode) {
debugPrint(
'The quill toolbar 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 toolbar provider widget to be in the parent widget tree '
'because '
'The provider is $provider. Please make sure to wrap this widget'
' with'
' QuillBaseToolbarProvider widget. '
'You might using QuillBaseToolbar so make sure to'
' wrap them with the quill provider widget and setup the required '
'configurations',
'QuillToolbarProvider',
);
}
return provider;
}