DeltaTextView constructor
const
DeltaTextView({
- Key? key,
- required Delta delta,
- required MentionConfig? mentionConfig,
- required TextStyle defaultStyle,
- EmojiConfig? emojiConfig = const EmojiConfig(),
- double? emojiOnlySize = 48,
- int? maxLines,
- TextAlign textAlign = TextAlign.start,
- Color? selectionColor,
- bool? selectable,
- void onSelectionChangedAsDelta(
- Delta? selectionDelta
- GestureTapCallback? onTapSelectableText,
- TextOverflow? overflow,
- Widget contextMenuBuilder()?,
- dynamic onLinkTap = _kDefaultLinkTap,
Implementation
const DeltaTextView({
super.key,
required this.delta,
required this.mentionConfig,
required this.defaultStyle,
this.emojiConfig = const EmojiConfig(),
this.emojiOnlySize = 48,
this.maxLines,
this.textAlign = TextAlign.start,
this.selectionColor,
this.selectable,
this.onSelectionChangedAsDelta,
this.onTapSelectableText,
this.overflow,
this.contextMenuBuilder,
dynamic onLinkTap = _kDefaultLinkTap,
}) : _onLinkTap = onLinkTap,
assert(
!(selectable != null && overflow != null),
'overflow можно использовать только когда selectable = null',
);