LinkStyleDialog constructor

const LinkStyleDialog({
  1. Key? key,
  2. String? text,
  3. String? link,
  4. QuillDialogTheme? dialogTheme,
  5. BoxConstraints? constraints,
  6. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(vertical: 16, horizontal: 16),
  7. String? addLinkLabel,
  8. String? editLinkLabel,
  9. Color? linkColor,
  10. double childrenSpacing = 16.0,
  11. AutovalidateMode autovalidateMode = AutovalidateMode.disabled,
  12. String? validationMessage,
  13. Size? buttonSize,
})

Implementation

const LinkStyleDialog({
  super.key,
  this.text,
  this.link,
  this.dialogTheme,
  this.constraints,
  this.contentPadding =
      const EdgeInsets.symmetric(vertical: 16, horizontal: 16),
  this.addLinkLabel,
  this.editLinkLabel,
  this.linkColor,
  this.childrenSpacing = 16.0,
  this.autovalidateMode = AutovalidateMode.disabled,
  this.validationMessage,
  this.buttonSize,
})  : assert(addLinkLabel == null || addLinkLabel.length > 0),
      assert(editLinkLabel == null || editLinkLabel.length > 0),
      assert(childrenSpacing > 0),
      assert(validationMessage == null || validationMessage.length > 0);