ZefyrEditor constructor

const ZefyrEditor(
  1. {Key key,
  2. @required ZefyrController controller,
  3. @required FocusNode focusNode,
  4. bool autofocus = true,
  5. ZefyrMode mode = ZefyrMode.edit,
  6. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16.0),
  7. ZefyrToolbarDelegate toolbarDelegate,
  8. ZefyrImageDelegate imageDelegate,
  9. TextSelectionControls selectionControls,
  10. ScrollPhysics physics,
  11. Brightness keyboardAppearance}
)

Implementation

const ZefyrEditor({
  Key key,
  @required this.controller,
  @required this.focusNode,
  this.autofocus = true,
  this.mode = ZefyrMode.edit,
  this.padding = const EdgeInsets.symmetric(horizontal: 16.0),
  this.toolbarDelegate,
  this.imageDelegate,
  this.selectionControls,
  this.physics,
  this.keyboardAppearance,
})  : assert(mode != null),
      assert(controller != null),
      assert(focusNode != null),
      super(key: key);