replacedElementRender function
CustomRender
replacedElementRender({
- PlaceholderAlignment? alignment,
- TextBaseline? baseline,
- Widget? child,
Implementation
CustomRender replacedElementRender(
{PlaceholderAlignment? alignment, TextBaseline? baseline, Widget? child}) =>
CustomRender.inlineSpan(
inlineSpan: (context, buildChildren) => WidgetSpan(
alignment: alignment ?? (context.tree as ReplacedElement).alignment,
baseline: baseline ?? TextBaseline.alphabetic,
child: child ?? (context.tree as ReplacedElement).toWidget(context)!,
));