parent
f5572a9291
commit
bce4be2771
1 changed files with 0 additions and 22 deletions
@ -1,22 +0,0 @@ |
||||
import 'package:flutter/widgets.dart' show BuildContext; |
||||
|
||||
import 'provider.dart'; |
||||
import 'quill_controller.dart'; |
||||
|
||||
// TODO: Remove this file later |
||||
|
||||
@Deprecated('No longer used internally and will be removed in future releases') |
||||
extension QuillControllerNullableExt on QuillController? { |
||||
/// Return the controller from the widget tree using [context]. |
||||
/// Throw if null. |
||||
@Deprecated( |
||||
'No longer used internally and will be removed in future releases', |
||||
) |
||||
QuillController notNull(BuildContext context) { |
||||
final controller = this; |
||||
if (controller != null) { |
||||
return controller; |
||||
} |
||||
return context.requireQuillController; |
||||
} |
||||
} |
Loading…
Reference in new issue