QuillEditorProvider constructor
QuillEditorProvider({
- required Widget child,
- QuillController? controller,
- @Deprecated('editorConfigurations are no longer needed and will be removed in future versions. Set configurations in the controller') QuillEditorConfigurations? editorConfigurations,
- Key? key,
Implementation
QuillEditorProvider({
required super.child,
/// Controller and configurations are required but should only be provided from one.
///
/// Passing the controller as part of configurations is being deprecated and will be removed in the future.
/// Prefer: use controller and set QuillEditorConfigurations in the controller.
/// Current: use configurations and pass QuillController in constructor for configurations.
QuillController? controller,
@Deprecated(
'editorConfigurations are no longer needed and will be removed in future versions. Set configurations in the controller')
QuillEditorConfigurations? editorConfigurations,
super.key,
}) : editorConfigurations = editorConfigurations ??
controller?.editorConfigurations ??
const QuillEditorConfigurations(),
controller = controller ??
// ignore: deprecated_member_use_from_same_package
editorConfigurations?.controller ??
QuillController.basic();