ZefyrEditor constructor

const ZefyrEditor({
  1. Key? key,
  2. required ZefyrController controller,
  3. FocusNode? focusNode,
  4. ClipboardController? clipboardController,
  5. ScrollController? scrollController,
  6. bool scrollable = true,
  7. EdgeInsetsGeometry padding = EdgeInsets.zero,
  8. bool autofocus = false,
  9. bool showCursor = true,
  10. bool readOnly = false,
  11. bool enableInteractiveSelection = true,
  12. bool enableSuggestions = false,
  13. double? minHeight,
  14. double? maxHeight,
  15. double? scrollAreaMinHeight,
  16. bool expands = false,
  17. TextCapitalization textCapitalization = TextCapitalization.sentences,
  18. Brightness keyboardAppearance = Brightness.light,
  19. ScrollPhysics? scrollPhysics,
  20. bool? showSelectionHandles,
  21. ValueChanged<Uri>? onLaunchUrl,
  22. ZefyrEmbedBuilder embedBuilder = defaultZefyrEmbedBuilder,
})

Implementation

const ZefyrEditor({
  Key? key,
  required this.controller,
  this.focusNode,
  this.clipboardController,
  this.scrollController,
  this.scrollable = true,
  this.padding = EdgeInsets.zero,
  this.autofocus = false,
  this.showCursor = true,
  this.readOnly = false,
  this.enableInteractiveSelection = true,
  this.enableSuggestions = false,
  this.minHeight,
  this.maxHeight,
  this.scrollAreaMinHeight,
  this.expands = false,
  this.textCapitalization = TextCapitalization.sentences,
  this.keyboardAppearance = Brightness.light,
  this.scrollPhysics,
  this.showSelectionHandles,
  this.onLaunchUrl,
  this.embedBuilder = defaultZefyrEmbedBuilder,
}) : super(key: key);